Open Ryzee119 opened 4 years ago
The SetLEDs function uses lr https://github.com/PaulStoffregen/USBHost_t36/blob/e64808debe03673dae038f22b2685ca09c5b4990/joystick.cpp#L200
SetLEDs
lr
The issue is this macro bitshifts left lr by 16, so the resulting value passed is always zero and the LED on the controller is not set. https://github.com/PaulStoffregen/USBHost_t36/blob/e64808debe03673dae038f22b2685ca09c5b4990/USBHost_t36.h#L915
Either the macro should be fixed, or lr should be changed to lb in this function: https://github.com/PaulStoffregen/USBHost_t36/blob/e64808debe03673dae038f22b2685ca09c5b4990/joystick.cpp#L200
lb
The problem
The
SetLEDs
function useslr
https://github.com/PaulStoffregen/USBHost_t36/blob/e64808debe03673dae038f22b2685ca09c5b4990/joystick.cpp#L200The issue is this macro bitshifts left
lr
by 16, so the resulting value passed is always zero and the LED on the controller is not set. https://github.com/PaulStoffregen/USBHost_t36/blob/e64808debe03673dae038f22b2685ca09c5b4990/USBHost_t36.h#L915The fix:
Either the macro should be fixed, or
lr
should be changed tolb
in this function: https://github.com/PaulStoffregen/USBHost_t36/blob/e64808debe03673dae038f22b2685ca09c5b4990/joystick.cpp#L200