Skip to content

Commit

Permalink
temporary fix for memory bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jcchurch13 committed Nov 29, 2016
1 parent 0d8dbb7 commit 861ead4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Mechaduino_01/Mechaduino_01/Mechaduino_01.ino
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ void setup() {
setupPins();
setupTCInterrupts();
sineGen();

stepNumber = 0; //this fixes a memory bug.... better fix coming soon.

SerialUSB.begin(115200);

delay(3000); //This delay seems to make it easier to establish a connection when the Mechaduino is configured to start in closed loop mode.
Expand All @@ -65,6 +66,7 @@ void setup() {

pinMode(3, OUTPUT); //for debugging control loop timing on pin 3


// enableTCInterrupts(); //start in closed loop mode
// mode = 'x';

Expand Down
2 changes: 1 addition & 1 deletion Mechaduino_01/Mechaduino_01/Parameters.cpp

Large diffs are not rendered by default.

0 comments on commit 861ead4

Please sign in to comment.