Skip to content

Commit

Permalink
bug fix Issue#16
Browse files Browse the repository at this point in the history
Issue #16
  • Loading branch information
Blade2021 committed Jun 5, 2017
1 parent c471c61 commit 077fd04
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions AssemblyAutoBoard/AssemblyAutoBoard.ino
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,19 @@ void loop() {
previousTimer1 = currentTime;
}
}
if (currentTime - previousTimer1 <= sysArray[6]) {
if ((currentTime - previousTimer1 <= sysArray[6]) && (manualFeed == LOW)) {
//previousTimer1 = currentTime;
//machStop(0);
Serial.println("Motor stopped due to ERROR[0032]");
Serial.print("preTime: ");
Serial.print(previousTimer1);
Serial.print(" - ");
Serial.print("currentTime: ");
Serial.print(currentTime);
Serial.print(" > ");
Serial.print("varTime: ");
Serial.println(sysArray[6]);
previousTimer1 = currentTime;
machStop(0);
}
}
// FEED OPEN
Expand Down

0 comments on commit 077fd04

Please sign in to comment.