diff --git a/ino/takeup/takeup.ino b/ino/takeup/takeup.ino index 446425e..65bb38f 100644 --- a/ino/takeup/takeup.ino +++ b/ino/takeup/takeup.ino @@ -87,7 +87,7 @@ void setup() { void loop() { timer = millis(); - + if (Serial.available()) { cmdChar = (char)Serial.read(); } @@ -102,6 +102,10 @@ void loop() { cmdChar = (char)softSerial.read(); } + if (cmdChar != 'z') { + cmd(cmdChar); + } + cmdChar = 'z'; btn(Fmotor);