diff options
| author | Joel Challis <git@zvecr.com> | 2022-11-27 02:05:04 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-27 02:05:04 +0000 |
| commit | cb57ec9c02ffebe5abeba266eb9eaa3dfc2089d3 (patch) | |
| tree | 4763a62dc1325510e79c048e68d40fce6c5cfe66 /lib/usbhost/USB_Host_Shield_2.0/examples/HID | |
| parent | 9b51f02f45f72758a61d761c2d8e1b1696cce6e8 (diff) | |
Revert lib/usbhost changes (#19165)
Diffstat (limited to 'lib/usbhost/USB_Host_Shield_2.0/examples/HID')
| -rw-r--r-- | lib/usbhost/USB_Host_Shield_2.0/examples/HID/le3dp/le3dp_rptparser.h | 2 | ||||
| -rw-r--r-- | lib/usbhost/USB_Host_Shield_2.0/examples/HID/scale/scale_rptparser.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/usbhost/USB_Host_Shield_2.0/examples/HID/le3dp/le3dp_rptparser.h b/lib/usbhost/USB_Host_Shield_2.0/examples/HID/le3dp/le3dp_rptparser.h index 05dab14afe..2400364e65 100644 --- a/lib/usbhost/USB_Host_Shield_2.0/examples/HID/le3dp/le3dp_rptparser.h +++ b/lib/usbhost/USB_Host_Shield_2.0/examples/HID/le3dp/le3dp_rptparser.h @@ -25,7 +25,7 @@ public: virtual void OnGamePadChanged(const GamePadEventData *evt); }; -#define RPT_GAMEPAD_LEN sizeof(GamePadEventData) +#define RPT_GAMEPAD_LEN sizeof(GamePadEventData)/sizeof(uint8_t) class JoystickReportParser : public HIDReportParser { diff --git a/lib/usbhost/USB_Host_Shield_2.0/examples/HID/scale/scale_rptparser.h b/lib/usbhost/USB_Host_Shield_2.0/examples/HID/scale/scale_rptparser.h index 7af18b88f7..57fbb033bf 100644 --- a/lib/usbhost/USB_Host_Shield_2.0/examples/HID/scale/scale_rptparser.h +++ b/lib/usbhost/USB_Host_Shield_2.0/examples/HID/scale/scale_rptparser.h @@ -38,7 +38,7 @@ public: virtual void OnScaleChanged(const ScaleEventData *evt); }; -#define RPT_SCALE_LEN sizeof(ScaleEventData) +#define RPT_SCALE_LEN sizeof(ScaleEventData)/sizeof(uint8_t) class ScaleReportParser : public HIDReportParser { |
