Skip to content

Commit 5596cd0

Browse files
committed
[NRF51822] Fix reference to sleep in hal_patch override
The `sleep` function as been changed into `hal_sleep` by #3607. Unfortunately the call to `sleep` in the hal_patch for the NRF51822 has not been updated to `hal_sleep`. The result was a link time error for targets based on NRF51822_LEGACY compiling with the mbed OS 5 tree.
1 parent b272647 commit 5596cd0

File tree

1 file changed

+1
-1
lines changed
  • features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/hal_patch

1 file changed

+1
-1
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/hal_patch/sleep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ void hal_sleep(void)
6666

6767
void hal_deepsleep(void)
6868
{
69-
sleep();
69+
hal_sleep();
7070
// NRF_POWER->SYSTEMOFF=1;
7171
}

0 commit comments

Comments
 (0)