Change to LCD status indicators

The I2C LCD status indicators now indicate when the hotends or bed are
turned on at all (rather than just when they are in their heating phase)
2.0.x
Robert F-C 12 years ago
parent dfa549f268
commit 4121311b9d

@ -720,11 +720,11 @@ static void lcd_implementation_update_indicators()
//set the LEDS - referred to as backlights by the LiquidTWI2 library //set the LEDS - referred to as backlights by the LiquidTWI2 library
static uint8_t ledsprev = 0; static uint8_t ledsprev = 0;
uint8_t leds = 0; uint8_t leds = 0;
if (isHeatingBed()) leds |= LED_A; if (target_temperature_bed > 0) leds |= LED_A;
if (isHeatingHotend(0)) leds |= LED_B; if (target_temperature[0] > 0) leds |= LED_B;
if (fanSpeed) leds |= LED_C; if (fanSpeed) leds |= LED_C;
#if EXTRUDERS > 1 #if EXTRUDERS > 1
if (isHeatingHotend(1)) leds |= LED_C; if (target_temperature[1] > 0) leds |= LED_C;
#endif #endif
if (leds != ledsprev) { if (leds != ledsprev) {
lcd.setBacklight(leds); lcd.setBacklight(leds);

Loading…
Cancel
Save