Skip to content

Commit

Permalink
Cellular: Fix ThisThread::sleep_until link error
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ccli8 committed Nov 28, 2024
1 parent 220f594 commit ac71633
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions connectivity/cellular/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ target_link_libraries(mbed-cellular
PUBLIC
mbed-netsocket-api
mbed-core-flags
mbed-rtos-flags
mbed-randlib
)

0 comments on commit ac71633

Please sign in to comment.