https://developer.mbed.org/users/TheoHavercroft/code/nrf51-sdk/
Fork of nRF51822 by
Diff: source/btle/btle.cpp
- Revision:
- 404:fccbe137c4ac
- Parent:
- 402:448a564f5c9e
- Child:
- 416:5b7d26035f2b
--- a/source/btle/btle.cpp Fri Aug 07 15:57:07 2015 +0100 +++ b/source/btle/btle.cpp Fri Aug 07 15:57:08 2015 +0100 @@ -52,10 +52,11 @@ error_t btle_init(void) { - if (NRF_CLOCK->LFCLKSRC & (CLOCK_LFCLKSRC_SRC_Xtal << CLOCK_LFCLKSRC_SRC_Pos)) + if (NRF_CLOCK->LFCLKSRC & (CLOCK_LFCLKSRC_SRC_Xtal << CLOCK_LFCLKSRC_SRC_Pos)) { SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL); - else + } else { SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, NULL); + } // Enable BLE stack /**