btle: fix build warning about unused clockConfiguration

Fix the following build warning seen with both GCC and ARM_CC
[Warning] btle.cpp@115,0:  #177-D: variable "clockConfiguration"  was declared but never referenced
pull/9691/head
Naveen Kaje 2019-02-12 15:26:31 -06:00
parent a477354292
commit 0563276466
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,6 @@ static uint32_t signalEvent()
error_t btle_init(void)
{
nrf_clock_lf_cfg_t clockConfiguration;
ret_code_t err_code;
// register softdevice handler vector
@ -122,6 +121,7 @@ error_t btle_init(void)
err_code = nrf_sdh_enable_request();
ASSERT_STATUS(err_code);
#else
nrf_clock_lf_cfg_t clockConfiguration;
// Configure the LF clock according to values provided by btle_clock.h.
// It is input from the chain of the yotta configuration system.
clockConfiguration.source = LFCLK_CONF_SOURCE;