Fix bug with my position

This commit is contained in:
cjkas 2026-03-24 08:58:15 +01:00
parent a55dc7f66b
commit 9584f01a70
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -9,6 +9,7 @@ SomfyController.ino.esp32c3.bin
SomfyController.ino.esp32s2.bin
.vscode/
.pio/
.claude/
data/
build/
coredump_report.txt

View file

@ -156,9 +156,9 @@ void somfy_frame_t::decodeFrame(byte* frame) {
this->proto = radio_proto::RTV;
this->cmd = (somfy_commands)(this->encKey - 148);
}
else if(this->encKey > 133) {
else if(this->encKey >= 133) {
this->proto = radio_proto::RTW;
this->cmd = (somfy_commands)(this->encKey - 133);
this->cmd = this->encKey == 133 ? somfy_commands::My : (somfy_commands)(this->encKey - 133);
}
}
else this->proto = radio_proto::RTS;