Skip to content

Commit

Permalink
[WIRED] Make accessory option 'BOTH' explicitly invalid for N64
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcloud committed May 29, 2024
1 parent 4fed2ed commit 7248e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/wired/nsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ static void n64_pad_cmd_hdlr(uint8_t channel, uint8_t port, uint16_t item) {
default:
/* 0x00 & 0xFF cmds goes here, corrupt cmd too! This help avoid ctrl detection error */
*(uint16_t *)buf = N64_CTRL;
if (config.out_cfg[channel].acc_mode > ACC_NONE) {
if (config.out_cfg[channel].acc_mode > ACC_NONE && config.out_cfg[channel].acc_mode < ACC_BOTH) {
if (ctrl_acc_update[channel] > 1) {
buf[2] = N64_SLOT_EMPTY;
ctrl_acc_update[channel]--;
Expand Down

0 comments on commit 7248e34

Please sign in to comment.