change(hid): set poll interval to 1ms by default

This commit is contained in:
Naxdy 2024-04-12 21:25:32 +02:00
parent d39451dc2e
commit 569ae9784f
Signed by: Naxdy
GPG key ID: CC15075846BCE91B

View file

@ -338,7 +338,7 @@ pub async fn usb_transfer_task(raw_serial: [u8; 8], driver: Driver<'static, USB>
let hid_config = embassy_usb::class::hid::Config { let hid_config = embassy_usb::class::hid::Config {
report_descriptor: GCC_REPORT_DESCRIPTOR, report_descriptor: GCC_REPORT_DESCRIPTOR,
request_handler: Some(&request_handler), request_handler: Some(&request_handler),
poll_ms: 8, poll_ms: 1,
max_packet_size_in: 37, max_packet_size_in: 37,
max_packet_size_out: 5, max_packet_size_out: 5,
}; };