diff options
| author | hathach <[email protected]> | 2021-05-18 12:45:59 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-05-18 12:45:59 +0700 |
| commit | a26752a93e56b2fb2d683e5a9f9934b432531d9b (patch) | |
| tree | 9e29cdb39bd39886b359e30a8e952d7ffe0862c2 /src/class/hid/hid_device.h | |
| parent | 7e9e682e09c2629a9575343e4efaf43d328bde33 (diff) | |
fix build error
Diffstat (limited to 'src/class/hid/hid_device.h')
| -rw-r--r-- | src/class/hid/hid_device.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/hid/hid_device.h b/src/class/hid/hid_device.h index 2cc4a9546..b3701c7e0 100644 --- a/src/class/hid/hid_device.h +++ b/src/class/hid/hid_device.h @@ -134,7 +134,7 @@ static inline uint8_t tud_hid_interface_protocol(void) return tud_hid_n_interface_protocol(0); } -static inline bool tud_hid_get_protocol(void) +static inline uint8_t tud_hid_get_protocol(void) { return tud_hid_n_get_protocol(0); } @@ -156,7 +156,7 @@ static inline bool tud_hid_mouse_report(uint8_t report_id, uint8_t buttons, int8 static inline bool tud_hid_gamepad_report(uint8_t report_id, int8_t x, int8_t y, int8_t z, int8_t rz, int8_t rx, int8_t ry, uint8_t hat, uint16_t buttons) { - return tud_hid_n_gamepad_report(0, x, y, z, rz, rx, ry, hat, buttons); + return tud_hid_n_gamepad_report(0, report_id, x, y, z, rz, rx, ry, hat, buttons); } /* --------------------------------------------------------------------+ |
