mirror of https://github.com/ARMmbed/mbed-os.git
Cellular: Remove compiling warning
parent
9ddb843cc8
commit
c75e4a87ee
|
|
@ -329,7 +329,7 @@ nsapi_size_or_error_t QUECTEL_BG96_CellularStack::socket_recvfrom_impl(CellularS
|
||||||
port = _at.read_int();
|
port = _at.read_int();
|
||||||
if (recv_len > 0) {
|
if (recv_len > 0) {
|
||||||
// do not read more than buffer size
|
// 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.read_bytes((uint8_t *)buffer, recv_len);
|
||||||
}
|
}
|
||||||
_at.resp_stop();
|
_at.resp_stop();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue