adafruit / Adafruit_nRF52_Arduino

Adafruit code for the Nordic nRF52 BLE SoC on Arduino
Other
623 stars 497 forks source link

Fixes MIDI read loop blocking other tasks in BLEMidi example #608

Closed spacenate closed 3 years ago

spacenate commented 3 years ago

Fixes #392

As described in that issue, the Arduino Scheduler seems to require that loops delay() or yield() periodically, otherwise other tasks may be blocked. Constructive criticism is welcome.

spacenate commented 3 years ago

Upon re-testing, I discovered the issue I was experiencing is not caused by a yield() (or lack thereof), but rather with a specific MIDI application (Xequence for iOS).