|
@ -8719,8 +8719,8 @@ void prepare_move_to_destination() { |
|
|
bool new_led = (max_temp > 55.0) ? true : (max_temp < 54.0) ? false : red_led; |
|
|
bool new_led = (max_temp > 55.0) ? true : (max_temp < 54.0) ? false : red_led; |
|
|
if (new_led != red_led) { |
|
|
if (new_led != red_led) { |
|
|
red_led = new_led; |
|
|
red_led = new_led; |
|
|
digitalWrite(STAT_LED_RED, new_led ? HIGH : LOW); |
|
|
WRITE(STAT_LED_RED_PIN, new_led ? HIGH : LOW); |
|
|
digitalWrite(STAT_LED_BLUE, new_led ? LOW : HIGH); |
|
|
WRITE(STAT_LED_BLUE_PIN, new_led ? LOW : HIGH); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -9200,14 +9200,12 @@ void setup() { |
|
|
|
|
|
|
|
|
setup_homepin(); |
|
|
setup_homepin(); |
|
|
|
|
|
|
|
|
#ifdef STAT_LED_RED |
|
|
#if PIN_EXISTS(STAT_LED_RED) |
|
|
pinMode(STAT_LED_RED, OUTPUT); |
|
|
OUT_WRITE(STAT_LED_RED_PIN, LOW); // turn it off
|
|
|
digitalWrite(STAT_LED_RED, LOW); // turn it off
|
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#ifdef STAT_LED_BLUE |
|
|
#if PIN_EXISTS(STAT_LED_BLUE) |
|
|
pinMode(STAT_LED_BLUE, OUTPUT); |
|
|
OUT_WRITE(STAT_LED_BLUE_PIN, LOW); // turn it off
|
|
|
digitalWrite(STAT_LED_BLUE, LOW); // turn it off
|
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
lcd_init(); |
|
|
lcd_init(); |
|
|