diff --git a/app/ble/ble_modem.c b/app/ble/ble_modem.c index 79d1dfd..7ae9c0a 100644 --- a/app/ble/ble_modem.c +++ b/app/ble/ble_modem.c @@ -1,6 +1,7 @@ #include "ble_modem.h" #include "app_common.h" #include "host/ble_hs.h" +#include "FreeRTOS.h" #include "wm_bt_def.h" #include "wm_bt_app.h" #include "wm_bt_util.h" @@ -57,7 +58,7 @@ bool ble_modem_off(void) uint8_t timeout = 0; while(ble_service_is_started()) { - tls_os_time_delay(pdMS_TO_TICK(1)); + tls_os_time_delay(pdMS_TO_TICKS(1)); // Service is stuck ? if(++timeout > 10)