|
@@ -9244,8 +9244,14 @@ void prepare_move_to_destination() {
|
9244
|
9244
|
bool new_led = (max_temp > 55.0) ? true : (max_temp < 54.0) ? false : red_led;
|
9245
|
9245
|
if (new_led != red_led) {
|
9246
|
9246
|
red_led = new_led;
|
9247
|
|
- WRITE(STAT_LED_RED_PIN, new_led ? HIGH : LOW);
|
9248
|
|
- WRITE(STAT_LED_BLUE_PIN, new_led ? LOW : HIGH);
|
|
9247
|
+ #if PIN_EXISTS(STAT_LED_RED)
|
|
9248
|
+ WRITE(STAT_LED_RED_PIN, new_led ? HIGH : LOW);
|
|
9249
|
+ #if PIN_EXISTS(STAT_LED_BLUE)
|
|
9250
|
+ WRITE(STAT_LED_BLUE_PIN, new_led ? LOW : HIGH);
|
|
9251
|
+ #endif
|
|
9252
|
+ #else
|
|
9253
|
+ WRITE(STAT_LED_BLUE_PIN, new_led ? HIGH : LOW);
|
|
9254
|
+ #endif
|
9249
|
9255
|
}
|
9250
|
9256
|
}
|
9251
|
9257
|
}
|