Skip to content

Commit

Permalink
Fix BLE panic 071 (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinwork authored May 25, 2023
1 parent 5eefe4c commit 2a1984e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions model/MicroBit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,13 @@ int MicroBit::init()
#endif

// Bring up the 64MHz external oscillator.
#if CONFIG_ENABLED(DEVICE_BLE) && CONFIG_ENABLED(MICROBIT_BLE_ENABLED)
sd_clock_hfclk_request();
#else
NRF_CLOCK->EVENTS_HFCLKSTARTED = 0;
NRF_CLOCK->TASKS_HFCLKSTART = 1;
while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0);
#endif

// Deschedule for a little while, just to allow for any components that finialise initialisation
// as a background task, and to allow the power mamanger to repsonse to background events from the KL27
Expand Down

0 comments on commit 2a1984e

Please sign in to comment.