Skip to content

Commit e986282

Browse files
committed
Forgot to call setLedRaw with the controller as the second argument in setLedOn
1 parent 2c5f5e8 commit e986282

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

XBOXRECV.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,9 @@ void XBOXRECV::setLedRaw(uint8_t value, uint8_t controller) {
514514

515515
void XBOXRECV::setLedOn(LEDEnum led, uint8_t controller) {
516516
if(led == OFF)
517-
setLedRaw(0);
517+
setLedRaw(0, controller);
518518
else if(led != ALL) // All LEDs can't be on a the same time
519-
setLedRaw(pgm_read_byte(&XBOX_LEDS[(uint8_t)led]) + 4);
519+
setLedRaw(pgm_read_byte(&XBOX_LEDS[(uint8_t)led]) + 4, controller);
520520
}
521521

522522
void XBOXRECV::setLedBlink(LEDEnum led, uint8_t controller) {

0 commit comments

Comments
 (0)