Skip to content

Commit

Permalink
Added termination char to serial writer.
Browse files Browse the repository at this point in the history
Also version increment.
  • Loading branch information
euphy committed Sep 14, 2014
1 parent 95b569b commit a3efbd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion polargraphcontroller.pde
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import java.awt.event.KeyEvent;
import java.awt.event.*;

int majorVersionNo = 1;
int minorVersionNo = 9;
int minorVersionNo = 10;
int buildNo = 0;

String programTitle = "Polargraph Controller v" + majorVersionNo + "." + minorVersionNo + " build " + buildNo;
Expand Down Expand Up @@ -2669,6 +2669,7 @@ void dispatchCommandQueue()
lastCommand = lastCommand+":"+crc.getValue();
println("Last command:" + lastCommand);
myPort.write(lastCommand);
myPort.write(10); // OH *$%! of COURSE you should terminate it.
drawbotReady = false;
}
else if (commandQueue.isEmpty())
Expand Down

0 comments on commit a3efbd9

Please sign in to comment.