Skip to content

Conversation

@liff
Copy link

@liff liff commented Dec 18, 2023

The 0.3 version of usb-device comes with some incompatible changes, so a minor amount of migration is required. An update of usbd-hid is required for the same reason.

use avr_device::{asm::sleep, interrupt};
use usb_device::{
class_prelude::UsbBusAllocator,
descriptor::lang_id::LangID::EN,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be just descriptor::lang_id::LangID else rust complains of LangID not being a module


let hid_class = HIDClass::new(usb_bus, KeyboardReport::desc(), 1);
let usb_device = UsbDeviceBuilder::new(usb_bus, UsbVidPid(0x1209, 0x0001))
let strings = StringDescriptors::new(EN)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consequently this should be let strings = StringDescriptors::new(LangID::EN)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants