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:
stefanbode 2023-11-14 11:54:01 -05:00 committed by GitHub
parent 7abf8c469b
commit dd9e2a7409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }