From b32432e01361fda8ac7d094ed99b5e50ef6c5bdb Mon Sep 17 00:00:00 2001 From: Alessandro Pilonato Date: Tue, 7 Apr 2026 17:59:14 +0200 Subject: [PATCH] Fix encKey threshold for RTW command calculation --- Somfy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Somfy.cpp b/Somfy.cpp index bffebd2..835a7fb 100644 --- a/Somfy.cpp +++ b/Somfy.cpp @@ -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 > 132) { 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;