devangel77b / Spektrum

mbed library for Spektrum serial receivers
Apache License 2.0
1 stars 0 forks source link

Add non blocking wait in spektrum receiver callback thread? #3

Closed devangel77b closed 6 years ago

devangel77b commented 6 years ago

The callback has a while loop that will be continually running but once a packet is received we don't expect another for 11 or 22 ms... could add a non-blocking wait here ThisThread::sleep_for or similar to allow mbed to do other stuff while waiting?