We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37ac540 + 1749a7f commit 2c3de5eCopy full SHA for 2c3de5e
Marlin/Marlin_main.cpp
@@ -8487,13 +8487,10 @@ void prepare_move_to_destination() {
8487
void handle_status_leds(void) {
8488
if (ELAPSED(millis(), next_status_led_update_ms)) {
8489
next_status_led_update_ms += 500; // Update every 0.5s
8490
- float max_temp =
8491
- #if HAS_TEMP_BED
8492
- MAX3(max_temp, thermalManager.degTargetBed(), thermalManager.degBed())
8493
- #else
8494
- 0.0
8495
- #endif
8496
- ;
+ float max_temp = 0.0;
+ #if HAS_TEMP_BED
+ max_temp = MAX3(max_temp, thermalManager.degTargetBed(), thermalManager.degBed());
+ #endif
8497
HOTEND_LOOP() {
8498
max_temp = MAX3(max_temp, thermalManager.degHotend(e), thermalManager.degTargetHotend(e));
8499
}
0 commit comments