Patch tabs, heater led tests
This commit is contained in:
parent
a89f4703df
commit
e6dfc991ae
3 changed files with 46 additions and 42 deletions
|
@ -1066,9 +1066,13 @@ void MarlinUI::draw_status_screen() {
|
||||||
static uint8_t ledsprev = 0;
|
static uint8_t ledsprev = 0;
|
||||||
uint8_t leds = 0;
|
uint8_t leds = 0;
|
||||||
|
|
||||||
|
#if HAS_HEATED_BED
|
||||||
if (thermalManager.degTargetBed() > 0) leds |= LED_A;
|
if (thermalManager.degTargetBed() > 0) leds |= LED_A;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if HOTENDS
|
||||||
if (thermalManager.degTargetHotend(0) > 0) leds |= LED_B;
|
if (thermalManager.degTargetHotend(0) > 0) leds |= LED_B;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if FAN_COUNT > 0
|
#if FAN_COUNT > 0
|
||||||
if (0
|
if (0
|
||||||
|
|
|
@ -1233,11 +1233,11 @@ void MarlinUI::update() {
|
||||||
|
|
||||||
#endif // UP || DWN || LFT || RT
|
#endif // UP || DWN || LFT || RT
|
||||||
|
|
||||||
buttons = newbutton
|
buttons = (newbutton
|
||||||
#if HAS_SLOW_BUTTONS
|
#if HAS_SLOW_BUTTONS
|
||||||
| slow_buttons
|
| slow_buttons
|
||||||
#endif
|
#endif
|
||||||
;
|
);
|
||||||
|
|
||||||
#elif HAS_ADC_BUTTONS
|
#elif HAS_ADC_BUTTONS
|
||||||
|
|
||||||
|
@ -1254,13 +1254,13 @@ void MarlinUI::update() {
|
||||||
|
|
||||||
#if HAS_SHIFT_ENCODER
|
#if HAS_SHIFT_ENCODER
|
||||||
|
|
||||||
GET_SHIFT_BUTTON_STATES(
|
GET_SHIFT_BUTTON_STATES((
|
||||||
#if ENABLED(REPRAPWORLD_KEYPAD)
|
#if ENABLED(REPRAPWORLD_KEYPAD)
|
||||||
keypad_buttons
|
keypad_buttons
|
||||||
#else
|
#else
|
||||||
buttons
|
buttons
|
||||||
#endif
|
#endif
|
||||||
);
|
));
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Reference in a new issue