mirror of https://github.com/meshcore-dev/MeshCore
Browse Source
The Adafruit framework starts the LFXO in init() but never waits for EVENTS_LFCLKSTARTED. On first boot the filesystem format (~600ms of page erases) gives the crystal time to stabilize. On subsequent boots only quick mounts happen, so sd_softdevice_enable() inside Bluefruit.begin() can be called while the crystal is still starting, which hangs indefinitely. Poll EVENTS_LFCLKSTARTED before Bluefruit.begin() so the wait is exact rather than a blind delay. fixes: #1780pull/1939/head
1 changed files with 9 additions and 0 deletions
Loading…
Reference in new issue