Skip to content

Commit 30e0ff6

Browse files
committed
fixed warnings: deprecated call of events::EventQueue::call_in(int. F)
1 parent ca74659 commit 30e0ff6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

connectivity/libraries/ppp/source/ppp_service_if.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,8 @@ extern "C" {
517517
}
518518

519519
void *cb_ptr = reinterpret_cast<void *>(ppp_service_sys_timeout_id);
520-
int unique_id = ppp_service_ptr->event_queue_get()->call_in(msecs, mbed::callback(ppp_sys_timeout_callback, cb_ptr));
520+
auto duration =std::chrono::milliseconds(msecs);
521+
int unique_id = ppp_service_ptr->event_queue_get()->call_in(duration, mbed::callback(ppp_sys_timeout_callback, cb_ptr));
521522
if (unique_id == 0) {
522523
tr_error("No free memory for timeout equeue");
523524
ppp_service_if_mutex->unlock();

0 commit comments

Comments
 (0)