mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 11:46:31 +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;
|
break;
|
||||||
}
|
}
|
||||||
#ifdef USE_SONOFF_IFAN
|
#ifdef USE_SONOFF_IFAN
|
||||||
// Do not touch Fan relays
|
if (IsModuleIfan()) {
|
||||||
TasmotaGlobal.power &= 0x0001;
|
// Do not touch Fan relays
|
||||||
TasmotaGlobal.power |= (current_power & 0xFFFE);
|
TasmotaGlobal.power &= 0x0001;
|
||||||
|
TasmotaGlobal.power |= (current_power & 0xFFFE);
|
||||||
|
}
|
||||||
#endif // USE_SONOFF_IFAN
|
#endif // USE_SONOFF_IFAN
|
||||||
SetDevicePower(TasmotaGlobal.power, source);
|
SetDevicePower(TasmotaGlobal.power, source);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user