mirror of https://github.com/ARMmbed/mbed-os.git
fixed warnings: deprecated call of events::EventQueue::call_in(int. F)
parent
ca74659780
commit
30e0ff60d9
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue