File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -479,7 +479,7 @@ int Temperature::getHeaterPower(int heater) {
479479 }
480480
481481 uint8_t fanDone = 0 ;
482- for (int8_t f = 0 ; f < COUNT (fanPin); f++) {
482+ for (uint8_t f = 0 ; f < COUNT (fanPin); f++) {
483483 int8_t pin = fanPin[f];
484484 if (pin >= 0 && !TEST (fanDone, fanBit[f])) {
485485 unsigned char newFanSpeed = TEST (fanState, fanBit[f]) ? EXTRUDER_AUTO_FAN_SPEED : 0 ;
You can’t perform that action at this time.
0 commit comments