From 24561919bf5a36af9f51082c142d97b48c129f9a Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Mon, 16 Jul 2012 14:57:44 +0200 Subject: [PATCH] temp.c: remove a redundant variable. This doesn't save a single byte in binary size, as the optimizer catches this anyways. --- temp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/temp.c b/temp.c index b6e5aa8..8e3abd8 100644 --- a/temp.c +++ b/temp.c @@ -374,10 +374,9 @@ void temp_print(temp_sensor_t index) { sersendf_P(PSTR("\nT:%u.%u"), temp_sensors_runtime[index].last_read_temp >> 2, c); #endif #ifdef HEATER_BED - uint8_t b = 0; - b = (temp_sensors_runtime[HEATER_BED].last_read_temp & 3) * 25; + c = (temp_sensors_runtime[HEATER_BED].last_read_temp & 3) * 25; - sersendf_P(PSTR(" B:%u.%u"), temp_sensors_runtime[HEATER_BED].last_read_temp >> 2 , b); + sersendf_P(PSTR(" B:%u.%u"), temp_sensors_runtime[HEATER_BED].last_read_temp >> 2 , c); #endif }