Skip to content

Commit f58633c

Browse files
committed
fixed warnings: deprecated call of Timer::read_ms()
1 parent a721767 commit f58633c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connectivity/drivers/cellular/TELIT/ME310/TELIT_ME310_CellularStack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ nsapi_size_or_error_t TELIT_ME310_CellularStack::socket_recvfrom_impl(CellularSo
436436
// read() should not fail
437437
success = false;
438438
}
439-
} else if (timer.read_ms() < ME310_SOCKET_TIMEOUT) {
439+
} else if (std::chrono::duration_cast<std::chrono::milliseconds>(timer.elapsed_time()) < std::chrono::milliseconds(ME310_SOCKET_TIMEOUT)) {
440440
// Wait for URCs
441441
_at.process_oob();
442442
} else {

0 commit comments

Comments
 (0)