aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-02-06 01:32:05 -0500
committerKevin O'Connor <kevin@koconnor.net>2025-02-15 18:22:45 -0500
commitbf5c4daf869c0c3c44d4dd786e71e8813fe28b12 (patch)
tree82b59c55c67e92258d945b5d5d232437b4b72f15 /klippy/extras
parentec56167032253b19bed362b25d3696f5d810633b (diff)
downloadkutter-bf5c4daf869c0c3c44d4dd786e71e8813fe28b12.tar.gz
kutter-bf5c4daf869c0c3c44d4dd786e71e8813fe28b12.tar.xz
kutter-bf5c4daf869c0c3c44d4dd786e71e8813fe28b12.zip
usb_cdc: Avoid ending a transmission with a max size usb packet
It seems the Linux kernel will consider a maximum size usb packet to be a transaction that will continue into the next usb packet. It will thus hold on to the traffic from the first packet until it gets the next packet. However, if the mcu has no further data to send after the first packet then the data could get delayed for an extended period of time. To avoid this, check for transmissions that could end on a maximum sized packet and send that data in two packets instead. This avoids this unusual corner case. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
0 files changed, 0 insertions, 0 deletions