aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf52840/src/bin/usb_serial.rs
diff options
context:
space:
mode:
authorEekle <[email protected]>2024-12-24 13:23:08 +0100
committerEekle <[email protected]>2024-12-24 13:23:08 +0100
commita3d35216d4649fbadd3e78fe240b736258b7befe (patch)
treef3b09e194e919747c93ebf714e416491c875408b /examples/nrf52840/src/bin/usb_serial.rs
parent0f4b9c7451b0849857a4bf712194e847db9e5730 (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.rs7
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];