Skip to content

Commit

Permalink
Just let coin count overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
whowechina committed Feb 25, 2024
1 parent c4f3a53 commit 4b40f75
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified Production/firmware/mai_pico.uf2
Binary file not shown.
2 changes: 1 addition & 1 deletion firmware/src/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static void report_usb_hid()
hid_joy.buttons[0] = native_to_io4(buttons);
hid_joy.buttons[1] = native_to_io4(0);
if (last_buttons ^ buttons & (1 << 11)) {
if ((buttons & (1 << 11)) && (hid_joy.chutes[0] < 0xff00)) {
if (buttons & (1 << 11)) {
// just pressed coin button
hid_joy.chutes[0] += 0x100;
}
Expand Down

0 comments on commit 4b40f75

Please sign in to comment.