mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 02:36:35 +00:00
Fix power0 regression from yesterday
This commit is contained in:
parent
8f973e3b3a
commit
e11c874eda
@ -410,9 +410,11 @@ void SetAllPower(uint32_t state, uint32_t source) {
|
||||
break;
|
||||
}
|
||||
#ifdef USE_SONOFF_IFAN
|
||||
// Do not touch Fan relays
|
||||
TasmotaGlobal.power &= 0x0001;
|
||||
TasmotaGlobal.power |= (current_power & 0xFFFE);
|
||||
if (IsModuleIfan()) {
|
||||
// Do not touch Fan relays
|
||||
TasmotaGlobal.power &= 0x0001;
|
||||
TasmotaGlobal.power |= (current_power & 0xFFFE);
|
||||
}
|
||||
#endif // USE_SONOFF_IFAN
|
||||
SetDevicePower(TasmotaGlobal.power, source);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user