Fix encKey threshold for RTW command calculation

This commit is contained in:
Alessandro Pilonato 2026-04-07 17:59:14 +02:00 committed by GitHub
parent eb75868adb
commit b32432e013
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 > 132) {
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;