slightly stricter sanity check for associated heater index
This commit is contained in:
parent
e2063137b5
commit
1f76745c9d
2
temp.c
2
temp.c
|
|
@ -228,7 +228,7 @@ void temp_sensor_tick() {
|
||||||
all_within_range = 0;
|
all_within_range = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (temp_sensors[i].heater_index != 255) {
|
if (temp_sensors[i].heater_index < NUM_HEATERS) {
|
||||||
heater_tick(temp_sensors[i].heater_index, temp_sensors_runtime[i].last_read_temp, temp_sensors_runtime[i].target_temp);
|
heater_tick(temp_sensors[i].heater_index, temp_sensors_runtime[i].last_read_temp, temp_sensors_runtime[i].target_temp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue