Added termination char to serial writer.

Also version increment.
This commit is contained in:
Sandy Noble 2014-09-14 21:55:01 +01:00
parent 95b569b1a5
commit a3efbd9cdb
1 changed files with 2 additions and 1 deletions

View File

@ -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;
@ -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())