We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent befd307 commit 7424b12Copy full SHA for 7424b12
micropython/usb/usb-device/usb/device/core.py
@@ -830,8 +830,8 @@ def finish_write(self, nbytes):
830
# Called by the producer to indicate it wrote nbytes into the buffer.
831
ist = machine.disable_irq()
832
try:
833
- assert nbytes <= self._l - (_w := self._w) # can't say we wrote more than was pended
834
- if self._n == _w:
+ assert nbytes <= self._l - self._w # can't say we wrote more than was pended
+ if self._n == self._w:
835
# no data was read while the write was happening, so the buffer is already in place
836
# (this is the fast path)
837
self._n += nbytes
0 commit comments