Merge pull request #923 from DuMaM/patch-1

GCC 11 build fix for nrf5x
This commit is contained in:
Ha Thach 2021-06-27 11:30:12 +07:00 committed by GitHub
commit d5c9de03a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}