From f4b7e422fc7f2f52df3404d80b3e75e649426da7 Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Sat, 17 Aug 2019 00:59:33 +0100 Subject: [PATCH] LedX should show power status even if there is no wifi or mqtt. Fixes: https://github.com/arendst/Sonoff-Tasmota/issues/6244 --- sonoff/sonoff.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/sonoff.ino b/sonoff/sonoff.ino index 9d2892ed3..02163b879 100755 --- a/sonoff/sonoff.ino +++ b/sonoff/sonoff.ino @@ -854,7 +854,7 @@ void Every250mSeconds(void) if (200 == blinks) blinks = 0; // Disable blink } } - else if (Settings.ledstate &1) { + if (Settings.ledstate &1 && (pin[GPIO_LEDLNK] < 99 || !(blinkstate || blinks <= 200)) ) { bool tstate = power & Settings.ledmask; if ((SONOFF_TOUCH == my_module_type) || (SONOFF_T11 == my_module_type) || (SONOFF_T12 == my_module_type) || (SONOFF_T13 == my_module_type)) { tstate = (!power) ? 1 : 0; // As requested invert signal for Touch devices to find them in the dark