mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-10-31 13:52:15 +01:00
fix: report tilt and set-My commands the radio refused
moveToTiltTarget, sendTiltCommand and setMyPosition returned nothing, so the web command queue counted tilt_command and set_my_position as sent and never logged a refusal. They now return false when the radio refused a command they sent. No native test: these live in Somfy.cpp, which the native env can't build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f0e8b1d896
commit
45776f64ce
3 changed files with 42 additions and 37 deletions
|
|
@ -160,8 +160,8 @@ void Web::processQueue() {
|
|||
case web_cmd_t::tilt_command: {
|
||||
SomfyShade *shade = somfy.getShadeById(cmd.shadeId);
|
||||
if(shade) {
|
||||
if(cmd.target <= 100) shade->moveToTiltTarget(shade->transformPosition(cmd.target));
|
||||
else shade->sendTiltCommand(cmd.command);
|
||||
if(cmd.target <= 100) sent = shade->moveToTiltTarget(shade->transformPosition(cmd.target));
|
||||
else sent = shade->sendTiltCommand(cmd.command);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
@ -209,7 +209,7 @@ void Web::processQueue() {
|
|||
}
|
||||
case web_cmd_t::set_my_position: {
|
||||
SomfyShade *shade = somfy.getShadeById(cmd.shadeId);
|
||||
if(shade) shade->setMyPosition(cmd.position, cmd.tiltPosition);
|
||||
if(shade) sent = shade->setMyPosition(cmd.position, cmd.tiltPosition);
|
||||
break;
|
||||
}
|
||||
case web_cmd_t::unpair_shade: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue