From 32a830da1cd735345fe423fde58cbc49532b533a Mon Sep 17 00:00:00 2001 From: kopecdav Date: Tue, 3 Jun 2025 14:04:55 +0200 Subject: [PATCH] fix(core/prodtest): fix vcp jamming when USB unplugged. [no changelog] --- core/embed/projects/prodtest/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/embed/projects/prodtest/main.c b/core/embed/projects/prodtest/main.c index 5c022328df..456a04898e 100644 --- a/core/embed/projects/prodtest/main.c +++ b/core/embed/projects/prodtest/main.c @@ -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); }