sui77 / rc-switch

Arduino lib to operate 433/315Mhz devices like power outlet sockets.
1.92k stars 663 forks source link

Send the syncFactor before the data #428

Open yquemener opened 3 years ago

yquemener commented 3 years ago

It is quite possible I totally misunderstood how to properly use this library, but I suspect there was a mistake there: the sync bits were not sent on the first repetition of the data and were appended at the end of the packet. It probably still worked as long as repeat >1 and that there is not interference.

syncBack

See on the this image (captured with gqrx) on the top line is the command I am trying to duplicate and on the bottom the output from rc-switch. Once I made the change linked here, the shapes matched.