Skip to content

Commit 5535537

Browse files
committed
chore: remove test code
1 parent fe201f4 commit 5535537

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

code/module/src/main.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,6 @@ void loop()
4141
{
4242
splitFlap.update();
4343

44-
// move flap every 200ms
45-
static unsigned long lastMove = 0;
46-
if (millis() - lastMove > 5000)
47-
{
48-
flapIndex = (flapIndex + 1) % 50;
49-
50-
Serial.printf("Setting flap to index: %d\n", flapIndex);
51-
splitFlap.setFlap(flapIndex);
52-
// splitFlap.moveFlaps(51); // TODO: make sure this also works with > 50
53-
54-
lastMove = millis();
55-
}
56-
5744
// Check if data is available to read
5845
if (mySerial.available())
5946
{

code/shared/include/SplitFlap.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class SplitFlap
4343
stepper.runSpeed();
4444
}
4545
stepper.setCurrentPosition(0);
46+
Serial.println("Homing complete");
4647

4748
// TODO: add max steps
4849
}

0 commit comments

Comments
 (0)