Skip to content

Commit c7d520e

Browse files
committed
fixed warnings: deprecated call of bool rtos::Semaphore::try_acquire_for(uint32_t)
1 parent 30e0ff6 commit c7d520e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connectivity/libraries/ppp/source/ppp_service.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ nsapi_error_t ppp_service::ppp_if_disconnect()
358358
ret = ppp_close(ppp_service_pcb, 0);
359359
if (ret == ERR_OK) {
360360
/* close call made, now let's catch the response in the status callback */
361-
ppp_service_close_sem.try_acquire_for(PPP_TERMINATION_TIMEOUT);
361+
ppp_service_close_sem.try_acquire_for(std::chrono::milliseconds(PPP_TERMINATION_TIMEOUT));
362362
}
363363
ppp_service_active = false;
364364
}

0 commit comments

Comments
 (0)