removed index from shuttermode

This commit is contained in:
stefanbode 2022-12-08 12:55:34 +01:00 committed by GitHub
parent de408921ec
commit 8320a944d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

@ -1366,6 +1366,7 @@ void CmndShutterMotorDelay(void)
void CmndShutterMode(void)
{
if ( XdrvMailbox.index == 1) {
if ((XdrvMailbox.payload >= 0) && (XdrvMailbox.payload <= MAX_MODES)) {
ShutterGlobal.position_mode = XdrvMailbox.payload;
Settings->shutter_mode = XdrvMailbox.payload;
@ -1373,6 +1374,7 @@ void CmndShutterMode(void)
}
ResponseCmndNumber(ShutterGlobal.position_mode);
}
}
void CmndShutterRelay(void)
{