summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-05-18 12:45:59 +0700
committerhathach <[email protected]>2021-05-18 12:45:59 +0700
commita26752a93e56b2fb2d683e5a9f9934b432531d9b (patch)
tree9e29cdb39bd39886b359e30a8e952d7ffe0862c2 /src/class
parent7e9e682e09c2629a9575343e4efaf43d328bde33 (diff)
fix build error
Diffstat (limited to 'src/class')
-rw-r--r--src/class/hid/hid.h2
-rw-r--r--src/class/hid/hid_device.c2
-rw-r--r--src/class/hid/hid_device.h4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/class/hid/hid.h b/src/class/hid/hid.h
index 5c30f7585..c63b6f00b 100644
--- a/src/class/hid/hid.h
+++ b/src/class/hid/hid.h
@@ -87,7 +87,7 @@ typedef enum
HID_REPORT_TYPE_INPUT, ///< Input
HID_REPORT_TYPE_OUTPUT, ///< Output
HID_REPORT_TYPE_FEATURE ///< Feature
-}hid_report_enum_t;
+}hid_report_type_t;
/// HID Class Specific Control Request
typedef enum
diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c
index 4d33c85d3..ab9ef3ad8 100644
--- a/src/class/hid/hid_device.c
+++ b/src/class/hid/hid_device.c
@@ -110,7 +110,7 @@ uint8_t tud_hid_n_interface_protocol(uint8_t instance)
return _hidd_itf[instance].itf_protocol;
}
-bool tud_hid_n_get_protocol(uint8_t instance)
+uint8_t tud_hid_n_get_protocol(uint8_t instance)
{
return _hidd_itf[instance].boot_mode ? HID_PROTOCOL_BOOT : HID_PROTOCOL_REPORT;
}
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);
}
/* --------------------------------------------------------------------+