only read command if port is ready
This commit is contained in:
parent
a8b3697d06
commit
bedd122047
|
@ -267,7 +267,9 @@ void setup() {
|
|||
//
|
||||
void loop() {
|
||||
// read from serial port
|
||||
readCommand();
|
||||
if (Serial) {
|
||||
readCommand();
|
||||
}
|
||||
|
||||
// sequence the arm.
|
||||
r.sequence();
|
||||
|
|
Loading…
Reference in New Issue