Fix power0 regression from yesterday

This commit is contained in:
Theo Arends 2025-07-21 09:26:30 +02:00
parent 8f973e3b3a
commit e11c874eda

View File

@ -410,9 +410,11 @@ void SetAllPower(uint32_t state, uint32_t source) {
break;
}
#ifdef USE_SONOFF_IFAN
if (IsModuleIfan()) {
// Do not touch Fan relays
TasmotaGlobal.power &= 0x0001;
TasmotaGlobal.power |= (current_power & 0xFFFE);
}
#endif // USE_SONOFF_IFAN
SetDevicePower(TasmotaGlobal.power, source);
}