Somfy: improve status

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
Álvaro Fernández Rojas 2023-05-29 18:33:43 +02:00
parent 8ed5346992
commit 17102a1a7d
2 changed files with 7 additions and 8 deletions

View file

@ -177,7 +177,7 @@ void somfy_frame_t::decodeFrame(byte* frame) {
break;
case somfy_commands::Status:
this->rollingCode = 0;
this->sun = !!(decoded[3] & STATUS_SUN);
this->status = decoded[3];
break;
case somfy_commands::UnknownC:
case somfy_commands::UnknownD: