mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-25 15:27:17 +00:00
regression of MAX_SHUTTERS for stepper motors (#20019)
maximize on 4 stepper shutters due to limits in number of counter
This commit is contained in:
parent
7abf8c469b
commit
dd9e2a7409
@ -668,6 +668,8 @@ void ShutterInit(void)
|
|||||||
break;
|
break;
|
||||||
case SHT_COUNTER:
|
case SHT_COUNTER:
|
||||||
ShutterGlobal.open_velocity_max = ShutterSettings.open_velocity_max;
|
ShutterGlobal.open_velocity_max = ShutterSettings.open_velocity_max;
|
||||||
|
// Limit the numbers of shutter to 4 because only 4 counters can be defined
|
||||||
|
TasmotaGlobal.shutters_present = tmin(TasmotaGlobal.shutters_present, 4);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user