From dd9e2a7409148c3d4e5894816ef3b20d8a43221f Mon Sep 17 00:00:00 2001 From: stefanbode Date: Tue, 14 Nov 2023 11:54:01 -0500 Subject: [PATCH] regression of MAX_SHUTTERS for stepper motors (#20019) maximize on 4 stepper shutters due to limits in number of counter --- tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino b/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino index 54e10c261..e42402bc2 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino @@ -668,6 +668,8 @@ void ShutterInit(void) break; case SHT_COUNTER: 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; }