From 020b53edd3d9245b5194e490dde2de1cd21c049b Mon Sep 17 00:00:00 2001 From: Jonne Kokkonen Date: Sun, 2 May 2021 05:35:59 +0300 Subject: [PATCH] Do not check joypad keypressed command length 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. --- command.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/command.c b/command.c index f15c789..f7a28df 100644 --- a/command.c +++ b/command.c @@ -105,7 +105,7 @@ 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, " @@ -113,10 +113,10 @@ void process_command(uint8_t *data, uint32_t size) { joypad_keypressedstate_command_datalength, size); dump_packet(size, recv_buf); break; - } + } */ // nothing is done with joypad key pressed packets for now - + break; default: @@ -126,4 +126,4 @@ void process_command(uint8_t *data, uint32_t size) { break; } -} \ No newline at end of file +}