Skip to content

Commit

Permalink
Fix prvPeriod in AnalogIO - starting value 1628136801 on SAMD
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed Jan 17, 2024
1 parent 14d62d6 commit c704a0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/analogIO/Wippersnapper_AnalogIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ void Wippersnapper_AnalogIO::initAnalogInputPin(
if (_analog_input_pins[i].enabled == false) {
_analog_input_pins[i].pinName = pin;
_analog_input_pins[i].period = periodMs;
_analog_input_pins[i].prvPeriod = 0L;
_analog_input_pins[i].readMode = analogReadMode;
_analog_input_pins[i].enabled = true;
break;
Expand Down

0 comments on commit c704a0e

Please sign in to comment.