temp.c: remove a redundant variable.

This doesn't save a single byte in binary size, as the optimizer
catches this anyways.
This commit is contained in:
Markus Hitter 2012-07-16 14:57:44 +02:00
parent 9731868418
commit 24561919bf
1 changed files with 2 additions and 3 deletions

5
temp.c
View File

@ -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
}