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:
Theo Arends 2020-04-12 11:03:36 +02:00 committed by GitHub
commit 1b18c58cd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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();