1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-05-04 23:36:16 +00:00

Fix reporting of USB joy 1 values

This commit is contained in:
Newsdee
2016-06-05 23:51:50 +08:00
parent 8f54e5acb9
commit 38a60f8f3e

5
menu.c
View File

@@ -306,7 +306,10 @@ void get_joystick_state_usb( char *s, unsigned char joy_num ) {
siprintbinary(binary_string, sizeof(joy), &joy);
strcat(s, binary_string);
strcat(s, " ");
joy = OsdUsbJoyGetExtraB();
if(joy_num==0)
joy = OsdUsbJoyGetExtra();
else
joy = OsdUsbJoyGetExtraB();
siprintbinary(binary_string, sizeof(joy), &joy);
strcat(s, binary_string);
return;