Switch prog commands sent to a 1 button garage motor.

This commit is contained in:
Robert Strouse 2023-08-28 10:46:48 -07:00
parent 74ee9f6f25
commit 3ec67cd0ea
3 changed files with 2 additions and 1 deletions

View file

@ -381,6 +381,7 @@ void Web::handleRepeatCommand(WebServer& server) {
server.send(500, _encoding_json, F("{\"status\":\"ERROR\",\"desc\":\"Shade reference could not be found.\"}"));
return;
}
if(shade->shadeType == shade_types::garage1 && command == somfy_commands::Prog) command = somfy_commands::Toggle;
if(!shade->isLastCommand(command)) {
// We are going to send this as a new command.
shade->sendCommand(command, repeat >= 0 ? repeat : shade->repeats);