fixed warnings: deprecated call of Timer::read_ms()

pull/13476/head
talorion 2020-08-22 13:42:02 +02:00 committed by Gregor Mayramhof
parent a721767c00
commit f58633c42e
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ nsapi_size_or_error_t TELIT_ME310_CellularStack::socket_recvfrom_impl(CellularSo
// read() should not fail
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
_at.process_oob();
} else {