Fix for: HCI Command Failed: 0B#319
Fix for: HCI Command Failed: 0B#319darkain wants to merge 2 commits intofelis:masterfrom darkain:0x0B-Fix
Conversation
|
Thanks for the pull request. Could you implement this without using a delay? You can do this by extending the state machine. The reason is that the library might be running on system where it is not allowed to block. |
|
The exiting stateCounter implementation is also broken though. It directly relies upon 1) the CPU clock speed, and 2) that the particular USB/BT/Wii Remote task is ran at a given interval. Time based code should be entirely re-written around something like elapsedMillis instead. https://www.pjrc.com/teensy/td_timing_elaspedMillis.html |
|
@darkain yes I agree. This is all taken care of in UHS30, as it is interrupt driven, so I think we should just leave the current state machine implementation as is. |
This corrects the issue with the repeated 0x0B error messages when pairing a Wii Remote from #169