From 39ab599eed8c807d6b5fd74c1a6b373920d8f751 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Tue, 31 May 2022 02:01:22 +0200 Subject: [PATCH] usb: set default max_packet_size_0 to 64. Supported chips can always do 64 bytes, 8 bytes seems to be more rare. We can add a way for the driver to specify the default in the future. --- embassy-usb/src/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-usb/src/builder.rs b/embassy-usb/src/builder.rs index 698a5f765..09904949f 100644 --- a/embassy-usb/src/builder.rs +++ b/embassy-usb/src/builder.rs @@ -104,7 +104,7 @@ impl<'a> Config<'a> { device_class: 0x00, device_sub_class: 0x00, device_protocol: 0x00, - max_packet_size_0: 8, + max_packet_size_0: 64, vendor_id: vid, product_id: pid, device_release: 0x0010,