Skip to content

Commit d36ebe7

Browse files
author
Cruz Monrreal
authored
Merge pull request #9691 from naveenkaje/fix_btle_clockconfig_warning
btle: fix build warning about unused clockConfiguration
2 parents b66678d + 0563276 commit d36ebe7

File tree

1 file changed

+1
-1
lines changed
  • features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_SOFTDEVICE/TARGET_NRF52/source/btle

1 file changed

+1
-1
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_SOFTDEVICE/TARGET_NRF52/source/btle/btle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ static uint32_t signalEvent()
112112

113113
error_t btle_init(void)
114114
{
115-
nrf_clock_lf_cfg_t clockConfiguration;
116115
ret_code_t err_code;
117116

118117
// register softdevice handler vector
@@ -122,6 +121,7 @@ error_t btle_init(void)
122121
err_code = nrf_sdh_enable_request();
123122
ASSERT_STATUS(err_code);
124123
#else
124+
nrf_clock_lf_cfg_t clockConfiguration;
125125
// Configure the LF clock according to values provided by btle_clock.h.
126126
// It is input from the chain of the yotta configuration system.
127127
clockConfiguration.source = LFCLK_CONF_SOURCE;

0 commit comments

Comments
 (0)