mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Forgot to call setLedRaw with the controller as the second argument in setLedOn
This commit is contained in:
parent
2c5f5e8c09
commit
e986282fa5
1 changed files with 2 additions and 2 deletions
|
@ -514,9 +514,9 @@ void XBOXRECV::setLedRaw(uint8_t value, uint8_t controller) {
|
||||||
|
|
||||||
void XBOXRECV::setLedOn(LEDEnum led, uint8_t controller) {
|
void XBOXRECV::setLedOn(LEDEnum led, uint8_t controller) {
|
||||||
if(led == OFF)
|
if(led == OFF)
|
||||||
setLedRaw(0);
|
setLedRaw(0, controller);
|
||||||
else if(led != ALL) // All LEDs can't be on a the same time
|
else if(led != ALL) // All LEDs can't be on a the same time
|
||||||
setLedRaw(pgm_read_byte(&XBOX_LEDS[(uint8_t)led]) + 4);
|
setLedRaw(pgm_read_byte(&XBOX_LEDS[(uint8_t)led]) + 4, controller);
|
||||||
}
|
}
|
||||||
|
|
||||||
void XBOXRECV::setLedBlink(LEDEnum led, uint8_t controller) {
|
void XBOXRECV::setLedBlink(LEDEnum led, uint8_t controller) {
|
||||||
|
|
Loading…
Reference in a new issue