Browse Source

fix thermal protection state machine target temp. V2

If the target temperature is changed then it would always stay in the reset state.
Thanks to @tonokip.

Replaces #2119
pull/1/head
AnHardt 10 years ago
parent
commit
b1404a0743
  1. 1
      Marlin/temperature.cpp

1
Marlin/temperature.cpp

@ -1042,7 +1042,6 @@ void tp_init() {
case TRReset: case TRReset:
*timer = 0; *timer = 0;
*state = TRInactive; *state = TRInactive;
break;
// Inactive state waits for a target temperature to be set // Inactive state waits for a target temperature to be set
case TRInactive: case TRInactive:
if (target_temperature > 0) { if (target_temperature > 0) {

Loading…
Cancel
Save