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:
parent
9731868418
commit
24561919bf
5
temp.c
5
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
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue