Skip to content

Commit f8d90dd

Browse files
talorionhugueskamba
andcommitted
suggested change by Hugues Kamba
Co-authored-by: Hugues Kamba <[email protected]>
1 parent f789de3 commit f8d90dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

connectivity/libraries/ppp/source/ppp_service.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ extern "C" { // "pppos.h" is missing extern C
6060
/* Timeout to wait for PPP connection to be terminated
6161
* (LCP Terminate-Request is answered with Terminate-Ack)
6262
*/
63-
#define PPP_TERMINATION_TIMEOUT 30000
63+
constexpr auto PPP_TERMINATION_TIMEOUT=30000ms;
6464

6565
// If both IPCP and IPCP6 are made, how long to wait for both to complete
6666
#define PPP_IPCP_IPCP6_DELAY 5000
@@ -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(std::chrono::milliseconds(PPP_TERMINATION_TIMEOUT));
361+
ppp_service_close_sem.try_acquire_for(PPP_TERMINATION_TIMEOUT);
362362
}
363363
ppp_service_active = false;
364364
}

0 commit comments

Comments
 (0)