mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #9691 from naveenkaje/fix_btle_clockconfig_warning
btle: fix build warning about unused clockConfigurationpull/9660/head
commit
d36ebe707b
|
@ -112,7 +112,6 @@ static uint32_t signalEvent()
|
||||||
|
|
||||||
error_t btle_init(void)
|
error_t btle_init(void)
|
||||||
{
|
{
|
||||||
nrf_clock_lf_cfg_t clockConfiguration;
|
|
||||||
ret_code_t err_code;
|
ret_code_t err_code;
|
||||||
|
|
||||||
// register softdevice handler vector
|
// register softdevice handler vector
|
||||||
|
@ -122,6 +121,7 @@ error_t btle_init(void)
|
||||||
err_code = nrf_sdh_enable_request();
|
err_code = nrf_sdh_enable_request();
|
||||||
ASSERT_STATUS(err_code);
|
ASSERT_STATUS(err_code);
|
||||||
#else
|
#else
|
||||||
|
nrf_clock_lf_cfg_t clockConfiguration;
|
||||||
// Configure the LF clock according to values provided by btle_clock.h.
|
// Configure the LF clock according to values provided by btle_clock.h.
|
||||||
// It is input from the chain of the yotta configuration system.
|
// It is input from the chain of the yotta configuration system.
|
||||||
clockConfiguration.source = LFCLK_CONF_SOURCE;
|
clockConfiguration.source = LFCLK_CONF_SOURCE;
|
||||||
|
|
Loading…
Reference in New Issue