mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 04:36:31 +00:00
Reduce the max count of devices to never exceed MAX_RELAYS
This commit is contained in:
parent
d855cc22a0
commit
8288d74bb2
@ -83,7 +83,7 @@ void Shift595SwitchRelay(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CmndShift595Devices(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;
|
Settings->shift595_device_count = (1 == XdrvMailbox.payload) ? SHIFT595_DEVICE_COUNT : XdrvMailbox.payload;
|
||||||
TasmotaGlobal.restart_flag = 2;
|
TasmotaGlobal.restart_flag = 2;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user