This commit is contained in:
Klaus K Wilting 2018-04-17 23:14:01 +02:00
parent bf6a21f44f
commit e41aaa45a0
2 changed files with 4 additions and 6 deletions

View File

@ -11,10 +11,10 @@
; ---> SELECT TARGET PLATFORM HERE! <---
[platformio]
;env_default = heltec_wifi_lora_32
env_default = heltec_wifi_lora_32
;env_default = ttgov1
;env_default = ttgov2
env_default = lopy
;env_default = lopy
;env_default = lopy4
;env_default = lolin32lite_lora
;env_default = lolin32_lora

View File

@ -424,11 +424,9 @@ uint64_t uptime() {
#endif
#ifdef HAS_RGB_LED
if (LEDState)
rgb_set_color(color); // LED on
else
rgb_set_color(COLOR_NONE); // LED off
rgb_set_color(LEDState ? color : COLOR_NONE);
#endif
previousLEDState = LEDState;
LEDcount--; // decrement blink counter
}