mirror of https://github.com/ARMmbed/mbed-os.git
fixed warnings: deprecated call of Timer::read_ms()
parent
a721767c00
commit
f58633c42e
|
@ -436,7 +436,7 @@ nsapi_size_or_error_t TELIT_ME310_CellularStack::socket_recvfrom_impl(CellularSo
|
||||||
// read() should not fail
|
// read() should not fail
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
} else if (timer.read_ms() < ME310_SOCKET_TIMEOUT) {
|
} else if (std::chrono::duration_cast<std::chrono::milliseconds>(timer.elapsed_time()) < std::chrono::milliseconds(ME310_SOCKET_TIMEOUT)) {
|
||||||
// Wait for URCs
|
// Wait for URCs
|
||||||
_at.process_oob();
|
_at.process_oob();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue