sui77 / rc-switch

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

On Raspberry cannot receive after sending #419

Open simonepernice opened 3 years ago

simonepernice commented 3 years ago

There is a bug on Raspberry. It is not possible to receive after sending. That happens because before sending the ISR is detached (but that instruction is commented on Raspberry because not supported). Once transmitted the ISRs is attached back but now there are two ISR on Raspberry. After every send a new ISR is attached on Raspberry. They do not work any more.

I made the fix using the C pre-processor to comment the changes for Arduino build. I do not understand how to propose my fix. I cloned the latest version of RC-Switch on my directory, added the fix and uploaded again.

It is available on: simonepernice/rc-switch

Thank you very much for this great piece of software! Simone