Skip to content

Commit

Permalink
Do not check joypad keypressed command length
Browse files Browse the repository at this point in the history
Recent firmwares have a joypad keypressed packet length of 3 instead of 2, causing error messages. Since the packets are not used, commenting the size checking out for now.
  • Loading branch information
laamaa authored May 2, 2021
1 parent 38481cc commit 020b53e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions command.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,18 @@ void process_command(uint8_t *data, uint32_t size) {
break;

case joypad_keypressedstate_command:

/*
if (size != joypad_keypressedstate_command_datalength) {
fprintf(stderr,
"Invalid joypad keypressed state packet: expected length %d, "
"got %d\n",
joypad_keypressedstate_command_datalength, size);
dump_packet(size, recv_buf);
break;
}
} */

// nothing is done with joypad key pressed packets for now

break;

default:
Expand All @@ -126,4 +126,4 @@ void process_command(uint8_t *data, uint32_t size) {

break;
}
}
}

0 comments on commit 020b53e

Please sign in to comment.