mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
introduce open close on shuttertilt command
This commit is contained in:
parent
2bc784fcbe
commit
e489c57b72
@ -1419,7 +1419,18 @@ void CmndShutterSetTilt(void)
|
||||
Shutter[XdrvMailbox.index -1].tilt_target_pos = XdrvMailbox.payload;
|
||||
XdrvMailbox.payload = -99;
|
||||
}
|
||||
if ((XdrvMailbox.data_len > 1) && (XdrvMailbox.payload <= 0)) {
|
||||
if (!strcasecmp(XdrvMailbox.data,D_CMND_SHUTTER_OPEN) ) {
|
||||
Shutter[XdrvMailbox.index -1].tilt_target_pos = Shutter[XdrvMailbox.index -1].tilt_config[3]; // open position
|
||||
XdrvMailbox.payload = -99;
|
||||
}
|
||||
if (!strcasecmp(XdrvMailbox.data,D_CMND_SHUTTER_CLOSE) ) {
|
||||
Shutter[XdrvMailbox.index -1].tilt_target_pos = Shutter[XdrvMailbox.index -1].tilt_config[4]; // close position
|
||||
XdrvMailbox.payload = -99;
|
||||
}
|
||||
}
|
||||
}
|
||||
XdrvMailbox.data[0] = '\0';
|
||||
ResponseCmndNumber(Shutter[XdrvMailbox.index -1].tilt_target_pos);
|
||||
CmndShutterPosition();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user