mirror of https://github.com/arendst/Tasmota.git
Resolve #9632 after sethalfway back to 50
This commit is contained in:
parent
3bebfb32d3
commit
e40c736dfb
|
@ -1342,6 +1342,7 @@ void CmndShutterSetHalfway(void)
|
|||
if ((XdrvMailbox.index > 0) && (XdrvMailbox.index <= shutters_present)) {
|
||||
if ((XdrvMailbox.payload >= 0) && (XdrvMailbox.payload <= 100)) {
|
||||
Settings.shutter_set50percent[XdrvMailbox.index -1] = (Settings.shutter_options[XdrvMailbox.index -1] & 1) ? 100 - XdrvMailbox.payload : XdrvMailbox.payload;
|
||||
Settings.shuttercoeff[0][0] = 0;
|
||||
ShutterInit();
|
||||
}
|
||||
ResponseCmndIdxNumber((Settings.shutter_options[XdrvMailbox.index -1] & 1) ? 100 - Settings.shutter_set50percent[XdrvMailbox.index -1] : Settings.shutter_set50percent[XdrvMailbox.index -1]);
|
||||
|
|
Loading…
Reference in New Issue