Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wait_Miso defines in cc1101.h (#213)
Static variables are only initialized once so the implementation only worked for a total of 255 iterations. After that, functions like cmdStrobe(), readReg() or writeReg() return immediately if the MISO pin is high. The variable miso_count is now out of while's scope and therefore no longer needs to be static.
- Loading branch information