mirror of https://github.com/arendst/Tasmota.git
[Shutter] Fix PowerON (#22548)
* [Shutter] Fix PowerON * [Shutter] Fix 2 PowerON * [Shutter] Fix 3 PowerON Integrate only when USE_SHUTTER is defined * @SteWers [Shutter] Fix 4 PowerON Fix compile error
This commit is contained in:
parent
db0287e566
commit
3316bc5e70
|
@ -466,7 +466,11 @@ void SetPowerOnState(void)
|
||||||
for (uint32_t i = 0; i < TasmotaGlobal.devices_present; i++) {
|
for (uint32_t i = 0; i < TasmotaGlobal.devices_present; i++) {
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
if (!Settings->flag3.no_power_feedback && // SetOption63 - Don't scan relay power state at restart - #5594 and #5663
|
if (!Settings->flag3.no_power_feedback && // SetOption63 - Don't scan relay power state at restart - #5594 and #5663
|
||||||
!TasmotaGlobal.power_on_delay) { // SetOption47 - Delay switching relays to reduce power surge at power on
|
!TasmotaGlobal.power_on_delay // SetOption47 - Delay switching relays to reduce power surge at power on
|
||||||
|
#ifdef USE_SHUTTER
|
||||||
|
&& !Settings->flag3.shutter_mode // SetOption80 - Enable shutter support
|
||||||
|
#endif // USE_SHUTTER
|
||||||
|
) {
|
||||||
if ((port < MAX_RELAYS) && PinUsed(GPIO_REL1, port)) {
|
if ((port < MAX_RELAYS) && PinUsed(GPIO_REL1, port)) {
|
||||||
if (bitRead(TasmotaGlobal.rel_bistable, port)) {
|
if (bitRead(TasmotaGlobal.rel_bistable, port)) {
|
||||||
port++; // Skip both bistable relays as always 0
|
port++; // Skip both bistable relays as always 0
|
||||||
|
|
Loading…
Reference in New Issue