Skip to content

Commit

Permalink
Update xdrv_60_shift595.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst committed Nov 27, 2024
1 parent 5a32df5 commit e8d5e44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasmota/tasmota_xdrv_driver/xdrv_60_shift595.ino
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ void Shift595ModuleInit(void) {

if (PinUsed(GPIO_SHIFT595_OE)) {
Shift595->pinOE = Pin(GPIO_SHIFT595_OE);
if (ResetReasonPowerOn()) { // Fix relay toggle at restart
Shift595ConfigurePin(Shift595->pinOE, 1); // Set all outputs to 3-state (3-state converted to OFF by ULN2803 relay drivers)
}
// Fix relay toggle at restart
// 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
Expand Down

0 comments on commit e8d5e44

Please sign in to comment.