From cdda371790a15dc9b2928940d6364f289f12d4de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Thu, 30 Mar 2017 13:36:37 +0200 Subject: [PATCH] Update borg.h --- School/vg2/borg/borg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/School/vg2/borg/borg.h b/School/vg2/borg/borg.h index a4520f3..d69d2be 100644 --- a/School/vg2/borg/borg.h +++ b/School/vg2/borg/borg.h @@ -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; }