mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 19:12:10 +01:00
Fix toggle obfuscation #153
This commit is contained in:
parent
3590f0d124
commit
5598790310
2 changed files with 6 additions and 0 deletions
|
|
@ -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.
Loading…
Add table
Add a link
Reference in a new issue