diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index 48551eccd..4033f2c9e 100755 --- a/Firmware/temperature.cpp +++ b/Firmware/temperature.cpp @@ -704,15 +704,6 @@ void soft_pwm_init() digitalWrite(MAX6675_SS,1); #endif - timer0_init(); //enables the heatbed timer. - - // timer2 already enabled earlier in the code - // now enable the COMPB temperature interrupt - OCR2B = 128; - ENABLE_SOFT_PWM_INTERRUPT(); - - timer4_init(); //for tone and Extruder fan PWM - #ifdef HEATER_0_MINTEMP minttemp[0] = HEATER_0_MINTEMP; while(analog2temp(minttemp_raw[0], 0) < HEATER_0_MINTEMP) { @@ -813,6 +804,15 @@ void soft_pwm_init() #endif } #endif //AMBIENT_MAXTEMP + + timer0_init(); //enables the heatbed timer. + + // timer2 already enabled earlier in the code + // now enable the COMPB temperature interrupt + OCR2B = 128; + ENABLE_SOFT_PWM_INTERRUPT(); + + timer4_init(); //for tone and Extruder fan PWM } #if (defined (TEMP_RUNAWAY_BED_HYSTERESIS) && TEMP_RUNAWAY_BED_TIMEOUT > 0) || (defined (TEMP_RUNAWAY_EXTRUDER_HYSTERESIS) && TEMP_RUNAWAY_EXTRUDER_TIMEOUT > 0)