mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-03-30 08:52:11 +02:00
Fix bug with my position
This commit is contained in:
parent
a55dc7f66b
commit
9584f01a70
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -9,6 +9,7 @@ SomfyController.ino.esp32c3.bin
|
||||||
SomfyController.ino.esp32s2.bin
|
SomfyController.ino.esp32s2.bin
|
||||||
.vscode/
|
.vscode/
|
||||||
.pio/
|
.pio/
|
||||||
|
.claude/
|
||||||
data/
|
data/
|
||||||
build/
|
build/
|
||||||
coredump_report.txt
|
coredump_report.txt
|
||||||
|
|
|
||||||
|
|
@ -156,9 +156,9 @@ void somfy_frame_t::decodeFrame(byte* frame) {
|
||||||
this->proto = radio_proto::RTV;
|
this->proto = radio_proto::RTV;
|
||||||
this->cmd = (somfy_commands)(this->encKey - 148);
|
this->cmd = (somfy_commands)(this->encKey - 148);
|
||||||
}
|
}
|
||||||
else if(this->encKey > 133) {
|
else if(this->encKey >= 133) {
|
||||||
this->proto = radio_proto::RTW;
|
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;
|
else this->proto = radio_proto::RTS;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue