mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-22 18:26:30 +00:00
Stop blinks when no network configured
This commit is contained in:
parent
1c7d923a8f
commit
daef0a759d
@ -922,7 +922,7 @@ void Every250mSeconds(void)
|
||||
|
||||
global_state.network_down = (global_state.wifi_down && global_state.eth_down);
|
||||
|
||||
if (!Settings.flag.global_state) { // Problem blinkyblinky enabled - SetOption31 - Control link led blinking
|
||||
if (!Settings.flag.global_state && !global_state.network_down) { // SetOption31 - Control link led blinking
|
||||
if (global_state.data &0x03) { // Any problem
|
||||
if (global_state.mqtt_down) { blinkinterval = 7; } // MQTT problem so blink every 2 seconds (slowest)
|
||||
if (global_state.network_down) { blinkinterval = 3; } // Network problem so blink every second (slow)
|
||||
|
Loading…
x
Reference in New Issue
Block a user