1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 13:56:24 +00:00

heater_index above its use

This commit is contained in:
Scott Lahteine 2015-04-04 06:18:08 -07:00
parent 60f8e0386f
commit b0f198c153

View File

@ -1023,12 +1023,12 @@ void setWatch() {
SERIAL_EOL;
*/
int heater_index = heater_id >= 0 ? heater_id : EXTRUDERS;
// If the target temperature changes, restart
if (tr_target_temperature[heater_index] != target_temperature)
*state = TRReset;
int heater_index = heater_id >= 0 ? heater_id : EXTRUDERS;
switch (*state) {
case TRReset:
*timer = 0;