ref: 7c42304de5ba50eece618def9fb5e792f892e80b
parent: d7220de8aafdfc725e6a19d3416fd6112ae05613
author: Jonne Kokkonen <jonne.kokkonen@gmail.com>
date: Sun May 2 01:35:59 EDT 2021
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.
--- a/command.c
+++ b/command.c
@@ -105,7 +105,7 @@
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 @@
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 @@
break;
}
-}
\ No newline at end of file
+}
--
⑨