Skip to content

Commit

Permalink
Forgot to update calls to setLedRaw
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauszus committed May 16, 2013
1 parent 216fce8 commit cd30acf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions XBOXRECV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,15 +473,15 @@ void XBOXRECV::setLedRaw(uint8_t value, uint8_t controller) {

void XBOXRECV::setLedOn(LED led, uint8_t controller) {
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) {
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
setLedRaw(controller, (uint8_t)ledMode);
setLedRaw((uint8_t)ledMode, controller);
}

/* PC runs this at interval of approx 2 seconds
Expand Down

0 comments on commit cd30acf

Please sign in to comment.