Browse Source

ADC sensor fix inspired by 'Evgen2' on Twitter

pull/1/head
Scott Lahteine 7 years ago
parent
commit
ca66574062
  1. 3
      Marlin/src/module/temperature.cpp

3
Marlin/src/module/temperature.cpp

@ -2059,7 +2059,8 @@ void Temperature::isr() {
} // temp_count >= OVERSAMPLENR } // temp_count >= OVERSAMPLENR
// Go to the next state, up to SensorsReady // 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) #if ENABLED(BABYSTEPPING)
LOOP_XYZ(axis) { LOOP_XYZ(axis) {

Loading…
Cancel
Save