Portisch / RF-Bridge-EFM8BB1

Alternative Firmware for the Sonoff RF Bridge EFM8BB1 chip
293 stars 124 forks source link

Bug when clearing PCA0 counter #232

Open mightymos opened 1 week ago

mightymos commented 1 week ago

I have had some initial success porting RF-Bridge-EFM8BB1 over to the newer Sonoff boxes. At the least I am able to decode packets from my own door sensor, perform sniffing, etc. https://github.com/mightymos/RF-Bridge-OB38S003

As part of learning, as best I can tell there is a bug in RF-Bridge-EFM8BB1when clearing the PCA0H and PCA0L registers. I believe the intent would be to clear the CR bit of PCA0CN0 prior to clearing the counter (i.e., to stop the counter). However, the PCA0MD bit 6 is instead cleared, which is a reserved bit.

I am not sure what real world impact this has, or if this repo is accepting pull requests?

Thanks.