diff options
| author | Eekle <[email protected]> | 2024-12-24 13:23:08 +0100 |
|---|---|---|
| committer | Eekle <[email protected]> | 2024-12-24 13:23:08 +0100 |
| commit | a3d35216d4649fbadd3e78fe240b736258b7befe (patch) | |
| tree | f3b09e194e919747c93ebf714e416491c875408b /examples/nrf52840/src/bin/usb_serial.rs | |
| parent | 0f4b9c7451b0849857a4bf712194e847db9e5730 (diff) | |
Remove manual settings of `composite_with_iads=true`
Diffstat (limited to 'examples/nrf52840/src/bin/usb_serial.rs')
| -rw-r--r-- | examples/nrf52840/src/bin/usb_serial.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/examples/nrf52840/src/bin/usb_serial.rs b/examples/nrf52840/src/bin/usb_serial.rs index a534046d9..8d05df791 100644 --- a/examples/nrf52840/src/bin/usb_serial.rs +++ b/examples/nrf52840/src/bin/usb_serial.rs | |||
| @@ -36,13 +36,6 @@ async fn main(_spawner: Spawner) { | |||
| 36 | config.max_power = 100; | 36 | config.max_power = 100; |
| 37 | config.max_packet_size_0 = 64; | 37 | config.max_packet_size_0 = 64; |
| 38 | 38 | ||
| 39 | // Required for windows compatibility. | ||
| 40 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help | ||
| 41 | config.device_class = 0xEF; | ||
| 42 | config.device_sub_class = 0x02; | ||
| 43 | config.device_protocol = 0x01; | ||
| 44 | config.composite_with_iads = true; | ||
| 45 | |||
| 46 | // Create embassy-usb DeviceBuilder using the driver and config. | 39 | // Create embassy-usb DeviceBuilder using the driver and config. |
| 47 | // It needs some buffers for building the descriptors. | 40 | // It needs some buffers for building the descriptors. |
| 48 | let mut config_descriptor = [0; 256]; | 41 | let mut config_descriptor = [0; 256]; |
