Update xdrv_60_shift595.ino

This commit is contained in:
Theo Arends 2024-11-27 14:01:23 +01:00
parent 5a32df5e81
commit e8d5e442bf
1 changed files with 3 additions and 3 deletions

View File

@ -66,9 +66,9 @@ void Shift595ModuleInit(void) {
if (PinUsed(GPIO_SHIFT595_OE)) { if (PinUsed(GPIO_SHIFT595_OE)) {
Shift595->pinOE = Pin(GPIO_SHIFT595_OE); Shift595->pinOE = Pin(GPIO_SHIFT595_OE);
if (ResetReasonPowerOn()) { // Fix relay toggle at restart // Fix relay toggle at restart
Shift595ConfigurePin(Shift595->pinOE, 1); // Set all outputs to 3-state (3-state converted to OFF by ULN2803 relay drivers) // On power ON set all outputs to 3-state (3-state converted to OFF by ULN2803 relay drivers)
} Shift595ConfigurePin(Shift595->pinOE, ResetReasonPowerOn());
} }
Shift595->first = TasmotaGlobal.devices_present; // devices_present offset Shift595->first = TasmotaGlobal.devices_present; // devices_present offset