mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-26 15:57:16 +00:00
removed index from shuttermode
This commit is contained in:
parent
de408921ec
commit
8320a944d8
@ -1366,6 +1366,7 @@ void CmndShutterMotorDelay(void)
|
|||||||
|
|
||||||
void CmndShutterMode(void)
|
void CmndShutterMode(void)
|
||||||
{
|
{
|
||||||
|
if ( XdrvMailbox.index == 1) {
|
||||||
if ((XdrvMailbox.payload >= 0) && (XdrvMailbox.payload <= MAX_MODES)) {
|
if ((XdrvMailbox.payload >= 0) && (XdrvMailbox.payload <= MAX_MODES)) {
|
||||||
ShutterGlobal.position_mode = XdrvMailbox.payload;
|
ShutterGlobal.position_mode = XdrvMailbox.payload;
|
||||||
Settings->shutter_mode = XdrvMailbox.payload;
|
Settings->shutter_mode = XdrvMailbox.payload;
|
||||||
@ -1373,6 +1374,7 @@ void CmndShutterMode(void)
|
|||||||
}
|
}
|
||||||
ResponseCmndNumber(ShutterGlobal.position_mode);
|
ResponseCmndNumber(ShutterGlobal.position_mode);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CmndShutterRelay(void)
|
void CmndShutterRelay(void)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user