From c7d520ee744fa0b0bc9352aa2e7307722583d534 Mon Sep 17 00:00:00 2001 From: talorion Date: Sat, 22 Aug 2020 12:25:33 +0200 Subject: [PATCH] fixed warnings: deprecated call of bool rtos::Semaphore::try_acquire_for(uint32_t) --- connectivity/libraries/ppp/source/ppp_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectivity/libraries/ppp/source/ppp_service.cpp b/connectivity/libraries/ppp/source/ppp_service.cpp index 374bf52e89..17ceff37aa 100644 --- a/connectivity/libraries/ppp/source/ppp_service.cpp +++ b/connectivity/libraries/ppp/source/ppp_service.cpp @@ -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; }