You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# update sn_tx_wr to the value + data size
ptr = (ptr + ret) & 0xFFFF # <-- use ret
self._write_sntx_wr(socket_num, ptr)
cntl_byte = 0x14 + (socket_num << 5)
txbuf = buffer[:ret] # <- use ret
self.write(dst_addr, cntl_byte, txbuf) # <- use txbuf
The text was updated successfully, but these errors were encountered:
I think, I found a bug in adafruit_wiznet5k/adafruit_wiznet5k.py
line 724, the code already has
ret
variable (SOCK_SIZE check & len of buffer)Adafruit_CircuitPython_Wiznet5k/adafruit_wiznet5k/adafruit_wiznet5k.py
Lines 724 to 727 in f00a3f7
But, line 747, 751, didn't use this
ret
variable.Adafruit_CircuitPython_Wiznet5k/adafruit_wiznet5k/adafruit_wiznet5k.py
Lines 747 to 751 in f00a3f7
Need to fix? My suggestion is:
The text was updated successfully, but these errors were encountered: