- // Increase the timer, aka « One more second with a problem maybe occuring »
- this->runaway_timer++;
-
- // If the timer has a too large value ( we have been too long outside the desired temperature range )
- if( this->runaway_timer > this->runaway_timeout && this->runaway_timeout != 0 ){
- THEKERNEL->streams->printf("Error : Temperature runaway on %s, HALT asserted, TURN POWER OFF IMMEDIATELY - reset or M999 required\n", designator.c_str());
- THEKERNEL->call_event(ON_HALT, nullptr);
- }
- }else{
- // The temperature was inside the acceptable range, reset the timer
- this->runaway_timer = 0;
+ THEKERNEL->streams->printf("Error : Temperature runaway on %s, HALT asserted, TURN POWER OFF IMMEDIATELY - reset or M999 required\n", designator.c_str());
+ THEKERNEL->call_event(ON_HALT, nullptr);