From 5596cd05cd6245e2ece6cf01806ae25efd2c0135 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Thu, 9 Mar 2017 12:44:49 +0000 Subject: [PATCH] [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. --- .../targets/TARGET_NORDIC/TARGET_MCU_NRF51822/hal_patch/sleep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/hal_patch/sleep.c b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/hal_patch/sleep.c index 7c178188a5..aec280a0fb 100644 --- a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/hal_patch/sleep.c +++ b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/hal_patch/sleep.c @@ -66,6 +66,6 @@ void hal_sleep(void) void hal_deepsleep(void) { - sleep(); + hal_sleep(); // NRF_POWER->SYSTEMOFF=1; }