mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Cast return type of sizeof in the SRWS1 example as well
This commit is contained in:
parent
a017f0f311
commit
2a3fe66727
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ void SRWS1::ParseHIDData(USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)
|
|||
}
|
||||
}
|
||||
#endif
|
||||
memcpy(&srws1Data, buf, min(len, sizeof(srws1Data)));
|
||||
memcpy(&srws1Data, buf, min(len, MFK_CASTUINT8T sizeof(srws1Data)));
|
||||
|
||||
static SRWS1DataButtons oldButtonState;
|
||||
if (srws1Data.btn.val != oldButtonState.val) { // Check if anything has changed
|
||||
|
|
Loading…
Reference in a new issue