commit c771118ad766d46b8f0100a07a6b967d9660cdb0 parent 4b7db472bcf2bb208d9b87ecfcc56af710aa5eeb Author: thing1 <thing1@seacrossedlovers.xyz> Date: Thu, 20 Nov 2025 17:46:53 +0000 added IR to the project Diffstat:
| M | CS12020/robot/line/line.ino | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/CS12020/robot/line/line.ino b/CS12020/robot/line/line.ino @@ -104,11 +104,13 @@ setup() { s->timeStamp = 0; } -void loop() { - setLEDs(LOW, LOW, isObstacle()); - return; +void +loop() { state *s = getState(); + /* do nothing while there is an obstacle */ + while (isObstacle()) + return; if (s->right && s->left && s->mid) { checkBarcode(s); /* run through the barcode */