1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-23 15:08:19 +00:00

fix(core/prodtest): fix vcp jamming when USB unplugged.

[no changelog]
This commit is contained in:
kopecdav 2025-06-03 14:04:55 +02:00 committed by kopecdav
parent 98aa195443
commit 32a830da1c

View File

@ -125,7 +125,7 @@ static size_t console_read(void *context, char *buf, size_t size) {
}
static size_t console_write(void *context, const char *buf, size_t size) {
return usb_vcp_write_blocking(VCP_IFACE, (const uint8_t *)buf, size, -1);
return usb_vcp_write_blocking(VCP_IFACE, (const uint8_t *)buf, size, 100);
}
static void vcp_intr(void) { cli_abort(&g_cli); }