Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions 20 Objects/AC27_101SEQ/AC27_101SEQ.ino
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,8 @@ void setup() {
// ==================== start of loop() =======================
void loop()
{
int i, j, k;

// deal with possible change of record/play mode
i = analogRead(3) > 511;

int i = analogRead(3) > 511;

// This determines if a record mode setting needs to change. NOTE:
// most of the complexity comes because of the auto-turnoff at the
Expand Down Expand Up @@ -174,7 +171,7 @@ void loop()

// increment, and check for wrap-around
currentPos++;
if ((currentPos >= loopEnd) || (currentPos >= loopMax)) {
if ((currentPos > loopEnd) || (currentPos > loopMax)) {
currentPos = loopStart;
}
}
Expand Down