fixed warnings: deprecated call of bool rtos::Semaphore::try_acquire_for(uint32_t)

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

View File

@ -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;
}