mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fixed error=parentheses warning
This commit is contained in:
parent
14021813ef
commit
51dde0252e
1 changed files with 2 additions and 1 deletions
|
@ -43,12 +43,13 @@ void JoystickReportParser::Parse(USBHID *hid, bool is_rpt_id, uint8_t len, uint8
|
||||||
for (uint8_t i = 0; i < 0x0C; i++) {
|
for (uint8_t i = 0; i < 0x0C; i++) {
|
||||||
uint16_t mask = (0x0001 << i);
|
uint16_t mask = (0x0001 << i);
|
||||||
|
|
||||||
if (((mask & changes) > 0) && joyEvents)
|
if (((mask & changes) > 0) && joyEvents) {
|
||||||
if ((buttons & mask) > 0)
|
if ((buttons & mask) > 0)
|
||||||
joyEvents->OnButtonDn(i + 1);
|
joyEvents->OnButtonDn(i + 1);
|
||||||
else
|
else
|
||||||
joyEvents->OnButtonUp(i + 1);
|
joyEvents->OnButtonUp(i + 1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
oldButtons = buttons;
|
oldButtons = buttons;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue