Skip to content

Commit 2c3de5e

Browse files
authored
Merge pull request #4691 from esenapaj/Suppress-warnings
Suppress warnings
2 parents 37ac540 + 1749a7f commit 2c3de5e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Marlin/Marlin_main.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8487,13 +8487,10 @@ void prepare_move_to_destination() {
84878487
void handle_status_leds(void) {
84888488
if (ELAPSED(millis(), next_status_led_update_ms)) {
84898489
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-
;
8490+
float max_temp = 0.0;
8491+
#if HAS_TEMP_BED
8492+
max_temp = MAX3(max_temp, thermalManager.degTargetBed(), thermalManager.degBed());
8493+
#endif
84978494
HOTEND_LOOP() {
84988495
max_temp = MAX3(max_temp, thermalManager.degHotend(e), thermalManager.degTargetHotend(e));
84998496
}

0 commit comments

Comments
 (0)