Cellular: Remove compiling warning

pull/9752/head
Mirela Chirica 2019-02-19 12:23:55 +02:00
parent 9ddb843cc8
commit c75e4a87ee
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ nsapi_size_or_error_t QUECTEL_BG96_CellularStack::socket_recvfrom_impl(CellularS
port = _at.read_int();
if (recv_len > 0) {
// do not read more than buffer size
recv_len = recv_len > size ? size : recv_len;
recv_len = recv_len > (nsapi_size_or_error_t)size ? size : recv_len;
_at.read_bytes((uint8_t *)buffer, recv_len);
}
_at.resp_stop();