fix pico_usb_twitchy_mouse with usbd-hid >= 0.5.1

usbd-hid 0.5.1 contained an accidental semver breaking change

fix example accordingly
This commit is contained in:
Jan Niehusmann 2021-09-25 09:10:01 +00:00 committed by 9names
parent 87b29bf9f4
commit 389e0ea715
2 changed files with 3 additions and 1 deletions

View file

@ -16,7 +16,7 @@ cortex-m-rt = { version = "0.7", optional = true }
embedded-time = "0.12.0"
usb-device= "0.2.8"
usbd-serial = "0.1.1"
usbd-hid = "0.5.0"
usbd-hid = "0.5.1"
[dev-dependencies]
panic-halt= "0.2.0"

View file

@ -142,6 +142,7 @@ fn main() -> ! {
y: 4,
buttons: 0,
wheel: 0,
pan: 0,
};
push_mouse_movement(rep_up).ok().unwrap_or(0);
@ -152,6 +153,7 @@ fn main() -> ! {
y: -4,
buttons: 0,
wheel: 0,
pan: 0,
};
push_mouse_movement(rep_down).ok().unwrap_or(0);
}