From 67fca36ecb13fb790ad144813aea2da90383f6dc Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Thu, 11 Nov 2010 09:59:32 +1100 Subject: [PATCH] remove redundant variable --- temp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/temp.c b/temp.c index 22ca721..3677ac2 100644 --- a/temp.c +++ b/temp.c @@ -110,7 +110,7 @@ void temp_init() { } void temp_sensor_tick() { - uint8_t i = 0, all_within_range = 1; + uint8_t i = 0; for (; i < NUM_TEMP_SENSORS; i++) { if (temp_sensors_runtime[i].next_read_time) { temp_sensors_runtime[i].next_read_time--; @@ -225,7 +225,6 @@ void temp_sensor_tick() { } else { temp_sensors_runtime[i].temp_residency = 0; - all_within_range = 0; } if (temp_sensors[i].heater_index < NUM_HEATERS) { @@ -257,6 +256,7 @@ uint16_t temp_get(uint8_t index) { return temp_sensors_runtime[index].last_read_temp; } +// extruder doesn't have sersendf_P #ifndef EXTRUDER void temp_print(uint8_t index) { uint8_t c = 0;