diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-05-31 02:01:22 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-05-31 02:01:22 +0200 |
| commit | 39ab599eed8c807d6b5fd74c1a6b373920d8f751 (patch) | |
| tree | adba2cde4dda23e85ecff4456680e434b92bc835 /embassy-usb/src/builder.rs | |
| parent | a7383840e7067df2d436601b8ca4a48384673254 (diff) | |
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.
Diffstat (limited to 'embassy-usb/src/builder.rs')
| -rw-r--r-- | embassy-usb/src/builder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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> { | |||
| 104 | device_class: 0x00, | 104 | device_class: 0x00, |
| 105 | device_sub_class: 0x00, | 105 | device_sub_class: 0x00, |
| 106 | device_protocol: 0x00, | 106 | device_protocol: 0x00, |
| 107 | max_packet_size_0: 8, | 107 | max_packet_size_0: 64, |
| 108 | vendor_id: vid, | 108 | vendor_id: vid, |
| 109 | product_id: pid, | 109 | product_id: pid, |
| 110 | device_release: 0x0010, | 110 | device_release: 0x0010, |
