From e584c381d9c2efab9fb7a15ba6d5d0ea818488c0 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Thu, 22 Sep 2022 16:56:58 -0400 Subject: Typo --- week4/week4.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/week4/week4.ino b/week4/week4.ino index 14acb28..f8ce7f9 100644 --- a/week4/week4.ino +++ b/week4/week4.ino @@ -17,7 +17,7 @@ void loop() { for (int i = 0; i < len; ++i) { while (analogRead(A0) < 240 && analogRead(A1) < 240 && analogRead(A2) < 240 && analogRead(A3) < 240); for (int j = 0; j < 4; ++j) - if (analogRead(A0+j) > 240 && seq[i] != j) goto DONE; // Legit use case of goto to jump out of 2 loops + if (analogRead(A0+j) > 240 && seq[i] != j) goto DONE; // Legit use case of goto to jump out of 3 loops delay(500); } for (int i = 0; i < 8; ++i) { -- cgit v1.2.3-70-g09d2