mirror of https://github.com/arendst/Tasmota.git
removed index from shuttermode
This commit is contained in:
parent
de408921ec
commit
8320a944d8
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue