Skip to content

Commit 71456a4

Browse files
committed
Change return of recv_into() to number of bytes read
1 parent bee7414 commit 71456a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_esp32spi/adafruit_esp32spi_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def recv_into(self, buffer):
187187
if self._timeout > 0 and time.monotonic() - stamp > self._timeout:
188188
break
189189
gc.collect()
190-
return buffer
190+
return len(buffer) - to_read
191191

192192
def read(self, size=0):
193193
"""Read up to 'size' bytes from the socket, this may be buffered internally!

0 commit comments

Comments
 (0)