mirror of https://github.com/arendst/Tasmota.git
Merge pull request #8143 from to-scho/bugfix/shutter_position_toggle_commands
Added 'toggle' to valid ShutterPosition arguments like up, down, open…
This commit is contained in:
commit
1b18c58cd8
|
@ -845,6 +845,10 @@ void CmndShutterPosition(void)
|
|||
CmndShutterClose();
|
||||
return;
|
||||
}
|
||||
if (!strcasecmp(XdrvMailbox.data,D_CMND_SHUTTER_TOGGLE)) {
|
||||
CmndShutterToggle();
|
||||
return;
|
||||
}
|
||||
if (!strcasecmp(XdrvMailbox.data,D_CMND_SHUTTER_STOP) || ((Shutter.direction[index]) && (!strcasecmp(XdrvMailbox.data,D_CMND_SHUTTER_STOPOPEN) || !strcasecmp(XdrvMailbox.data,D_CMND_SHUTTER_STOPCLOSE)))) {
|
||||
XdrvMailbox.payload = -99;
|
||||
CmndShutterStop();
|
||||
|
|
Loading…
Reference in New Issue