mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-03-30 17:02:12 +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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue