Update borg.h
This commit is contained in:
parent
a68e7e539e
commit
cdda371790
@ -157,10 +157,10 @@ void getNeighborLED(LEDSelect* origin, byte origin_dir, LEDSelect* Result)
|
||||
}
|
||||
|
||||
|
||||
Result->side = DIRECTIONS[origin->side][origin_dir];
|
||||
Result->side = DIRECTIONS[side][origin_dir];
|
||||
byte edge;
|
||||
for (edge = 0; edge < 4; edge++) {
|
||||
if (DIRECTIONS[Result->side][edge] == origin->side)
|
||||
if (DIRECTIONS[Result->side][edge] == side)
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user