|
@@ -9814,39 +9814,6 @@ void controllerFan()
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
-#ifdef TEMP_STAT_LEDS
|
|
|
-static bool blue_led = false;
|
|
|
-static bool red_led = false;
|
|
|
-static uint32_t stat_update = 0;
|
|
|
-
|
|
|
-void handle_status_leds(void) {
|
|
|
- float max_temp = 0.0;
|
|
|
- if(_millis() > stat_update) {
|
|
|
- stat_update += 500; // Update every 0.5s
|
|
|
- for (int8_t cur_extruder = 0; cur_extruder < EXTRUDERS; ++cur_extruder) {
|
|
|
- max_temp = max(max_temp, degHotend(cur_extruder));
|
|
|
- max_temp = max(max_temp, degTargetHotend(cur_extruder));
|
|
|
- }
|
|
|
- #if defined(TEMP_BED_PIN) && TEMP_BED_PIN > -1
|
|
|
- max_temp = max(max_temp, degTargetBed());
|
|
|
- max_temp = max(max_temp, degBed());
|
|
|
- #endif
|
|
|
- if((max_temp > 55.0) && (red_led == false)) {
|
|
|
- digitalWrite(STAT_LED_RED, 1);
|
|
|
- digitalWrite(STAT_LED_BLUE, 0);
|
|
|
- red_led = true;
|
|
|
- blue_led = false;
|
|
|
- }
|
|
|
- if((max_temp < 54.0) && (blue_led == false)) {
|
|
|
- digitalWrite(STAT_LED_RED, 0);
|
|
|
- digitalWrite(STAT_LED_BLUE, 1);
|
|
|
- red_led = false;
|
|
|
- blue_led = true;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-#endif
|
|
|
-
|
|
|
#ifdef SAFETYTIMER
|
|
|
/**
|
|
|
* @brief Turn off heating after safetytimer_inactive_time milliseconds of inactivity
|
|
@@ -10090,9 +10057,6 @@ if(0)
|
|
|
WRITE(E0_ENABLE_PIN,oldstatus);
|
|
|
}
|
|
|
#endif
|
|
|
- #ifdef TEMP_STAT_LEDS
|
|
|
- handle_status_leds();
|
|
|
- #endif
|
|
|
check_axes_activity();
|
|
|
mmu_loop();
|
|
|
|