mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-02 23:47:42 +00:00
Merge pull request #6246 from shantur/development
LedX should show power status even if there is no wifi or mqtt.
This commit is contained in:
commit
b9302d9ab9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user