mirror of https://github.com/ARMmbed/mbed-os.git
fixed warnings: deprecated call of bool rtos::Semaphore::try_acquire_for(uint32_t)
parent
30e0ff60d9
commit
c7d520ee74
|
@ -358,7 +358,7 @@ nsapi_error_t ppp_service::ppp_if_disconnect()
|
|||
ret = ppp_close(ppp_service_pcb, 0);
|
||||
if (ret == ERR_OK) {
|
||||
/* close call made, now let's catch the response in the status callback */
|
||||
ppp_service_close_sem.try_acquire_for(PPP_TERMINATION_TIMEOUT);
|
||||
ppp_service_close_sem.try_acquire_for(std::chrono::milliseconds(PPP_TERMINATION_TIMEOUT));
|
||||
}
|
||||
ppp_service_active = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue