This commit is contained in:
Maxime 2026-06-05 11:45:22 +02:00 committed by GitHub
commit 6965ec3d97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = (somfy_commands)(this->encKey - 132);
} }
} }
else this->proto = radio_proto::RTS; else this->proto = radio_proto::RTS;