From 8288d74bb2f654f01e27c86c8ef8bd62a8275973 Mon Sep 17 00:00:00 2001 From: jziolkowski Date: Sat, 4 Dec 2021 18:12:41 +0100 Subject: [PATCH] Reduce the max count of devices to never exceed MAX_RELAYS --- tasmota/xdrv_60_shift595.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_60_shift595.ino b/tasmota/xdrv_60_shift595.ino index 9bae92196..27200d52f 100644 --- a/tasmota/xdrv_60_shift595.ino +++ b/tasmota/xdrv_60_shift595.ino @@ -83,7 +83,7 @@ void Shift595SwitchRelay(void) } void CmndShift595Devices(void) { - if ((XdrvMailbox.payload > 0) && (XdrvMailbox.payload <= 4)) { + if ((XdrvMailbox.payload > 0) && (XdrvMailbox.payload <= 3)) { Settings->shift595_device_count = (1 == XdrvMailbox.payload) ? SHIFT595_DEVICE_COUNT : XdrvMailbox.payload; TasmotaGlobal.restart_flag = 2; }