mirror of https://github.com/arendst/Tasmota.git
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) {
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue