File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
connectivity/libraries/ppp/source Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ extern "C" { // "pppos.h" is missing extern C
60
60
/* Timeout to wait for PPP connection to be terminated
61
61
* (LCP Terminate-Request is answered with Terminate-Ack)
62
62
*/
63
- # define PPP_TERMINATION_TIMEOUT 30000
63
+ constexpr auto PPP_TERMINATION_TIMEOUT=30000ms;
64
64
65
65
// If both IPCP and IPCP6 are made, how long to wait for both to complete
66
66
#define PPP_IPCP_IPCP6_DELAY 5000
@@ -358,7 +358,7 @@ nsapi_error_t ppp_service::ppp_if_disconnect()
358
358
ret = ppp_close (ppp_service_pcb, 0 );
359
359
if (ret == ERR_OK) {
360
360
/* close call made, now let's catch the response in the status callback */
361
- ppp_service_close_sem.try_acquire_for (std::chrono::milliseconds ( PPP_TERMINATION_TIMEOUT) );
361
+ ppp_service_close_sem.try_acquire_for (PPP_TERMINATION_TIMEOUT);
362
362
}
363
363
ppp_service_active = false ;
364
364
}
You can’t perform that action at this time.
0 commit comments