From 108c9e5dce83b28d04473c6f07c63a73d0ec1ed6 Mon Sep 17 00:00:00 2001 From: Naxdy Date: Mon, 1 Apr 2024 21:08:12 +0200 Subject: [PATCH] chore: clean up usb descriptor --- src/gcc_hid.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gcc_hid.rs b/src/gcc_hid.rs index d1758ea..52dbbe1 100644 --- a/src/gcc_hid.rs +++ b/src/gcc_hid.rs @@ -279,11 +279,11 @@ pub async fn usb_transfer_task( usb_config.manufacturer = Some("Naxdy"); usb_config.product = Some("NaxGCC"); usb_config.serial_number = Some(serial); - usb_config.max_power = 10; + usb_config.max_power = 200; usb_config.max_packet_size_0 = 64; usb_config.device_class = 0; usb_config.device_protocol = 0; - usb_config.self_powered = true; + usb_config.self_powered = false; usb_config.device_sub_class = 0; usb_config.supports_remote_wakeup = true;