remove incompatible device classes and protocol from RP webusb example
This commit is contained in:
parent
6919732666
commit
608fe44a43
@ -51,12 +51,6 @@ async fn main(_spawner: Spawner) {
|
|||||||
config.max_power = 100;
|
config.max_power = 100;
|
||||||
config.max_packet_size_0 = 64;
|
config.max_packet_size_0 = 64;
|
||||||
|
|
||||||
// Required for windows compatibility.
|
|
||||||
// https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help
|
|
||||||
config.device_class = 0xff;
|
|
||||||
config.device_sub_class = 0x00;
|
|
||||||
config.device_protocol = 0x00;
|
|
||||||
|
|
||||||
// Create embassy-usb DeviceBuilder using the driver and config.
|
// Create embassy-usb DeviceBuilder using the driver and config.
|
||||||
// It needs some buffers for building the descriptors.
|
// It needs some buffers for building the descriptors.
|
||||||
let mut config_descriptor = [0; 256];
|
let mut config_descriptor = [0; 256];
|
||||||
|
|||||||
@ -51,12 +51,6 @@ async fn main(_spawner: Spawner) {
|
|||||||
config.max_power = 100;
|
config.max_power = 100;
|
||||||
config.max_packet_size_0 = 64;
|
config.max_packet_size_0 = 64;
|
||||||
|
|
||||||
// Required for windows compatibility.
|
|
||||||
// https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help
|
|
||||||
config.device_class = 0xff;
|
|
||||||
config.device_sub_class = 0x00;
|
|
||||||
config.device_protocol = 0x00;
|
|
||||||
|
|
||||||
// Create embassy-usb DeviceBuilder using the driver and config.
|
// Create embassy-usb DeviceBuilder using the driver and config.
|
||||||
// It needs some buffers for building the descriptors.
|
// It needs some buffers for building the descriptors.
|
||||||
let mut config_descriptor = [0; 256];
|
let mut config_descriptor = [0; 256];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user