ADC sensor fix inspired by 'Evgen2' on Twitter
This commit is contained in:
parent
1344ca4b2f
commit
ca66574062
1 changed files with 2 additions and 1 deletions
|
@ -2059,7 +2059,8 @@ void Temperature::isr() {
|
|||
} // temp_count >= OVERSAMPLENR
|
||||
|
||||
// Go to the next state, up to SensorsReady
|
||||
adc_sensor_state = (ADCSensorState)((int(adc_sensor_state) + 1) % int(StartupDelay));
|
||||
adc_sensor_state = (ADCSensorState)(int(adc_sensor_state) + 1);
|
||||
if (adc_sensor_state > SensorsReady) adc_sensor_state = (ADCSensorState)0;
|
||||
|
||||
#if ENABLED(BABYSTEPPING)
|
||||
LOOP_XYZ(axis) {
|
||||
|
|
Reference in a new issue