1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 20:18:52 +00:00

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
This commit is contained in:
AnHardt 2015-06-02 12:26:21 +02:00
parent 764e61708b
commit b1404a0743

View File

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