summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-06-27 11:30:12 +0700
committerGitHub <[email protected]>2021-06-27 11:30:12 +0700
commitd5c9de03a2e3787bd61b4667075cb8c4c1d0c216 (patch)
tree489b7e2dafa298b57f02bcf2291be2887dcc6725 /src
parent5a4fc1151a7e62a291a90836165942737a1a2d6f (diff)
parentb5ce269675c4d220806126cc76f8c57406da27d2 (diff)
Merge pull request #923 from DuMaM/patch-1
GCC 11 build fix for nrf5x
Diffstat (limited to 'src')
-rw-r--r--src/portable/nordic/nrf5x/dcd_nrf5x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/nordic/nrf5x/dcd_nrf5x.c b/src/portable/nordic/nrf5x/dcd_nrf5x.c
index b3b2dec2d..5f4fe08ad 100644
--- a/src/portable/nordic/nrf5x/dcd_nrf5x.c
+++ b/src/portable/nordic/nrf5x/dcd_nrf5x.c
@@ -787,7 +787,7 @@ static bool hfclk_running(void)
#ifdef SOFTDEVICE_PRESENT
if ( is_sd_enabled() )
{
- uint32_t is_running;
+ uint32_t is_running = 0;
(void) sd_clock_hfclk_is_running(&is_running);
return (is_running ? true : false);
}