Skip to content

Commit ac71633

Browse files
committed
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.
1 parent 220f594 commit ac71633

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

connectivity/cellular/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ target_link_libraries(mbed-cellular
3939
PUBLIC
4040
mbed-netsocket-api
4141
mbed-core-flags
42+
mbed-rtos-flags
4243
mbed-randlib
4344
)

0 commit comments

Comments
 (0)