From c7891163fe727dbc890284487f2d42dda229272f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Thu, 6 Apr 2017 13:33:37 +0200 Subject: [PATCH] Forgot the side south case --- School/vg2/borg/borg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/School/vg2/borg/borg.h b/School/vg2/borg/borg.h index fa7ce17..1f7e508 100644 --- a/School/vg2/borg/borg.h +++ b/School/vg2/borg/borg.h @@ -244,7 +244,8 @@ void getNeighborLED(LEDSelect* origin, byte origin_dir, LEDSelect* Result) if ((side == 0 && (origin_dir == NORTH || origin_dir == SOUTH)) - || (side == 4 && origin_dir == NORTH)) { + || (side == 4 && origin_dir == NORTH) + || (side == 5 && origin_dir == SOUTH)) { (column == 0) ? Result->column = 2 : Result->column = 0; // Sets edge to opposite return; }