From e8d5e442bf375d3313271d09932d4655b12c7b19 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 27 Nov 2024 14:01:23 +0100 Subject: [PATCH] Update xdrv_60_shift595.ino --- tasmota/tasmota_xdrv_driver/xdrv_60_shift595.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_60_shift595.ino b/tasmota/tasmota_xdrv_driver/xdrv_60_shift595.ino index c1c1280d6..513723c7f 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_60_shift595.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_60_shift595.ino @@ -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