From ac71633725d1aa54b4b8161a980e6f914b8dd7e5 Mon Sep 17 00:00:00 2001 From: Chun-Chieh Li Date: Thu, 28 Nov 2024 14:33:39 +0800 Subject: [PATCH] Cellular: Fix ThisThread::sleep_until link error ATHandler::cmd_start (ATHandler.c) calls ThisThread::sleep_until, which has parameter abs_time, whose type is Clock::time_point. Clock::time_point type has different definitions dependent on MBED_CONF_RTOS_PRESENT defined or not (rtos/Kernel.h). For cellular application whose executable cmake target always links mbed-os rather than mbed-baremetal, mbed-cellular must also link mbed-rtos-flags to be consistent with executable, so that both have MBED_CONF_RTOS_PRESENT defined. --- connectivity/cellular/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/connectivity/cellular/CMakeLists.txt b/connectivity/cellular/CMakeLists.txt index 05add3e8d7d..13c4d2772bf 100644 --- a/connectivity/cellular/CMakeLists.txt +++ b/connectivity/cellular/CMakeLists.txt @@ -39,5 +39,6 @@ target_link_libraries(mbed-cellular PUBLIC mbed-netsocket-api mbed-core-flags + mbed-rtos-flags mbed-randlib )