diff --git a/src/components/analogIO/Wippersnapper_AnalogIO.cpp b/src/components/analogIO/Wippersnapper_AnalogIO.cpp index 64edfbd4..711472d5 100644 --- a/src/components/analogIO/Wippersnapper_AnalogIO.cpp +++ b/src/components/analogIO/Wippersnapper_AnalogIO.cpp @@ -422,7 +422,7 @@ void Wippersnapper_AnalogIO::update() { _analog_input_pins[i].prvPinVal - (_analog_input_pins[i].prvPinVal * CURRENT_HYSTERISIS); - if (pinValRaw > _pinValThreshHi || pinValRaw < _pinValThreshLow) { + if (_analog_input_pins[i].prvPeriod == 0 || pinValRaw > _pinValThreshHi || pinValRaw < _pinValThreshLow) { // Perform voltage conversion if we need to if (_analog_input_pins[i].readMode == wippersnapper_pin_v1_ConfigurePinRequest_AnalogReadMode_ANALOG_READ_MODE_PIN_VOLTAGE) {