temp.c: DEBUG_USER code for raw temp readings.

This commit is contained in:
David Forrest 2012-11-14 11:34:09 -05:00 committed by Markus Hitter
parent aefd4b6596
commit 6ac79b288d
1 changed files with 8 additions and 0 deletions

8
temp.c
View File

@ -297,7 +297,15 @@ void temp_sensor_tick() {
if (temp_sensors[i].heater < NUM_HEATERS) { if (temp_sensors[i].heater < NUM_HEATERS) {
heater_tick(temp_sensors[i].heater, temp_sensors[i].temp_type, temp_sensors_runtime[i].last_read_temp, temp_sensors_runtime[i].target_temp); heater_tick(temp_sensors[i].heater, temp_sensors[i].temp_type, temp_sensors_runtime[i].last_read_temp, temp_sensors_runtime[i].target_temp);
} }
if (DEBUG_PID && (debug_flags & DEBUG_PID))
sersendf_P(PSTR("DU temp: {%d %d %d.%d}"), i,
temp_sensors_runtime[i].last_read_temp,
temp_sensors_runtime[i].last_read_temp / 4,
(temp_sensors_runtime[i].last_read_temp & 0x03) * 25);
} }
if (DEBUG_PID && (debug_flags & DEBUG_PID))
sersendf_P(PSTR("\n"));
} }
/// report whether all temp sensors are reading their target temperatures /// report whether all temp sensors are reading their target temperatures