Update borg.h

This commit is contained in:
Daniel Løvbrøtte Olsen 2017-04-03 11:41:13 +02:00 committed by GitHub
parent 0004a96a48
commit 84e854d524

View File

@ -276,10 +276,11 @@ void getNeighborLED(LEDSelect* origin, byte origin_dir, LEDSelect* Result)
void getRotNeighborLED(LEDSelect* origin, byte rot, LEDSelect* Result)
{
if (ROTTODIR[origin->side][rot] == 255)
byte direction = ROTTODIR[origin->side][rot];
if (direction == 255)
return;
getNeighborLED(origin, ROTTODIR[origin->side][rot], Result);
getNeighborLED(origin, direction, Result);
}
bool setColor(LEDSelect selection, CRGB color, CRGB* leds)