mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Forgot to update calls to setLedRaw
This commit is contained in:
parent
216fce8d95
commit
cd30acf362
1 changed files with 3 additions and 3 deletions
|
@ -473,15 +473,15 @@ void XBOXRECV::setLedRaw(uint8_t value, uint8_t controller) {
|
||||||
|
|
||||||
void XBOXRECV::setLedOn(LED led, uint8_t controller) {
|
void XBOXRECV::setLedOn(LED led, uint8_t controller) {
|
||||||
if (led != ALL) // All LEDs can't be on a the same time
|
if (led != ALL) // All LEDs can't be on a the same time
|
||||||
setLedRaw(controller, (pgm_read_byte(&XBOXLEDS[(uint8_t)led])) + 4);
|
setLedRaw(pgm_read_byte(&XBOXLEDS[(uint8_t)led]) + 4, controller);
|
||||||
}
|
}
|
||||||
|
|
||||||
void XBOXRECV::setLedBlink(LED led, uint8_t controller) {
|
void XBOXRECV::setLedBlink(LED led, uint8_t controller) {
|
||||||
setLedRaw(controller, pgm_read_byte(&XBOXLEDS[(uint8_t)led]));
|
setLedRaw(pgm_read_byte(&XBOXLEDS[(uint8_t)led]), controller);
|
||||||
}
|
}
|
||||||
|
|
||||||
void XBOXRECV::setLedMode(LEDMode ledMode, uint8_t controller) { // This function is used to do some speciel LED stuff the controller supports
|
void XBOXRECV::setLedMode(LEDMode ledMode, uint8_t controller) { // This function is used to do some speciel LED stuff the controller supports
|
||||||
setLedRaw(controller, (uint8_t)ledMode);
|
setLedRaw((uint8_t)ledMode, controller);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PC runs this at interval of approx 2 seconds
|
/* PC runs this at interval of approx 2 seconds
|
||||||
|
|
Loading…
Reference in a new issue