Raise error with positive code in recv_into for espressif

This commit is contained in:
Georg Bøe 2022-10-25 22:53:01 +02:00
parent f67d2794c0
commit 032bf63f2d
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ int socketpool_socket_recv_into(socketpool_socket_obj_t *self,
mp_uint_t common_hal_socketpool_socket_recv_into(socketpool_socket_obj_t *self, const uint8_t *buf, uint32_t len) {
int received = socketpool_socket_recv_into(self, buf, len);
if (received < 0) {
mp_raise_OSError(received);
mp_raise_OSError(-received);
}
return received;
}