Skip to content

Commit 32d6604

Browse files
committed
pbio/drv/usb: Increase transmit timeout.
When USB is receiving and transmitting a lot at the same time, transmissions sometimes take just over 50ms even when nothing is wrong. This would reset the connection, causing the code editor to fail. We shouldn't raise a timeout error so soon in this case, so extend it to a duration that is more likely to represent a stuck state.
1 parent 5b218c3 commit 32d6604

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
## [Unreleased]
66

7+
### Added
8+
- Added `Port View` on EV3 apps tab.
9+
10+
### Fixed
11+
- Fixed USB connection resetting on app losing focus or high print volume.
12+
713
## [4.0.0b8] - 2026-03-19
814

915
### Added

lib/pbio/drv/usb/usb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#include <stdint.h>
1818

19-
#define PBDRV_USB_TRANSMIT_TIMEOUT (50)
19+
#define PBDRV_USB_TRANSMIT_TIMEOUT (500)
2020

2121
/**
2222
* Initializes the USB driver on boot.

0 commit comments

Comments
 (0)