summaryrefslogtreecommitdiff
path: root/examples/device/hid_boot_interface/src/main.c
diff options
context:
space:
mode:
authorAndrew Scheller <[email protected]>2024-08-28 13:30:48 +0100
committerGitHub <[email protected]>2024-08-28 13:30:48 +0100
commitf73964e3e59645757a7311f2b4fe7c1c9d868e12 (patch)
treede7a46074d4e4f2a50395232ec500e4b2c4f1167 /examples/device/hid_boot_interface/src/main.c
parent669f341b0be27fb9024e0ed8b5e64cfe6a83cb8a (diff)
Fix compiler warning in hid_boot_interface example
Diffstat (limited to 'examples/device/hid_boot_interface/src/main.c')
-rw-r--r--examples/device/hid_boot_interface/src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/device/hid_boot_interface/src/main.c b/examples/device/hid_boot_interface/src/main.c
index 7ad5c53c2..c2aef502d 100644
--- a/examples/device/hid_boot_interface/src/main.c
+++ b/examples/device/hid_boot_interface/src/main.c
@@ -161,8 +161,8 @@ void hid_task(void)
{
uint8_t const report_id = 0;
uint8_t const button_mask = 0;
- uint8_t const vertical = 0;
- uint8_t const horizontal = 0;
+ int8_t const vertical = 0;
+ int8_t const horizontal = 0;
int8_t const delta = 5;
tud_hid_n_mouse_report(ITF_NUM_MOUSE, report_id, button_mask, delta, delta, vertical, horizontal);