Skip to content

Commit f0c2cfe

Browse files
committed
modify after another review
Replace `u16` to `LangID` impl with `num_enum::TryFromPrimitive`. Add `defmt` formatter for `LangID`. Reject any requests that asking lang_ids which is not supported by device.
1 parent 283b1f3 commit f0c2cfe

File tree

3 files changed

+75
-505
lines changed

3 files changed

+75
-505
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ repository = "https://github.com/mvirkkunen/usb-device"
1212
[dependencies]
1313
defmt = { version = "0.3", optional = true }
1414
portable-atomic = { version = "1.2.0", default-features = false }
15+
num_enum = { version = "0.6.1", default-features = false }
1516

1617
[dev-dependencies]
1718
rusb = "0.9.1"

0 commit comments

Comments
 (0)