Browse Source

HAL_AVR: initialise settle time

master
Andrew Tridgell 12 years ago
parent
commit
912ed2c97c
  1. 2
      libraries/AP_HAL_AVR/AnalogIn_ADC.cpp

2
libraries/AP_HAL_AVR/AnalogIn_ADC.cpp

@ -16,6 +16,8 @@ ADCSource::ADCSource(uint8_t pin, float prescale) : @@ -16,6 +16,8 @@ ADCSource::ADCSource(uint8_t pin, float prescale) :
_stop_pin(ANALOG_INPUT_NONE),
_sum_count(0),
_sum(0),
_settle_time_ms(0),
_last_average(0),
_prescale(prescale)
{}

Loading…
Cancel
Save