Skip to content

Commit 48e507f

Browse files
committed
minor clean up
1 parent 3870224 commit 48e507f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/HID/hid_gamepad/hid_gamepad.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ void loop()
245245
for (int i=0; i<32; ++i)
246246
{
247247
Serial.print("Pressing button "); Serial.println(i);
248-
gp.buttons = (1 << i);
248+
gp.buttons = (1U << i);
249249
usb_hid.sendReport(0, &gp, sizeof(gp));
250250
delay(1000);
251251
}

0 commit comments

Comments
 (0)