Fix toggle obfuscation #153

This commit is contained in:
Robert Strouse 2023-09-18 09:10:34 -07:00
parent 3590f0d124
commit 5598790310
2 changed files with 6 additions and 0 deletions

View file

@ -340,6 +340,12 @@ void somfy_frame_t::encodeFrame(byte *frame) {
break; break;
case somfy_commands::Toggle: case somfy_commands::Toggle:
frame[0] = 164; frame[0] = 164;
// This also needs to be a command val of 15.
frame[1] |= 0xF0;
frame[7] = 196;
frame[8] = 0;
frame[9] = 25;
break;
case somfy_commands::Prog: case somfy_commands::Prog:
frame[7] = 196; frame[7] = 196;
frame[8] = 0; frame[8] = 0;

Binary file not shown.