fixed warnings: deprecated call of events::EventQueue::call_in(int. F)

pull/13476/head
talorion 2020-08-22 12:13:46 +02:00 committed by Gregor Mayramhof
parent ca74659780
commit 30e0ff60d9
1 changed files with 2 additions and 1 deletions

View File

@ -517,7 +517,8 @@ extern "C" {
}
void *cb_ptr = reinterpret_cast<void *>(ppp_service_sys_timeout_id);
int unique_id = ppp_service_ptr->event_queue_get()->call_in(msecs, mbed::callback(ppp_sys_timeout_callback, cb_ptr));
auto duration =std::chrono::milliseconds(msecs);
int unique_id = ppp_service_ptr->event_queue_get()->call_in(duration, mbed::callback(ppp_sys_timeout_callback, cb_ptr));
if (unique_id == 0) {
tr_error("No free memory for timeout equeue");
ppp_service_if_mutex->unlock();