This commit is contained in:
Lubos Petrovic
2020-12-05 11:24:20 +01:00
parent 3844e9bd8c
commit 3dcfab24ea
8 changed files with 36 additions and 6 deletions

View File

@@ -635,11 +635,14 @@ void loop() {
if (liveData->bleConnected) {
if (Serial.available()) {
ch = Serial.read();
line = line + ch;
if (ch == '\r' || ch == '\n') {
board->customConsoleCommand(line);
line = line + ch;
Serial.println(line);
liveData->pRemoteCharacteristicWrite->writeValue(line.c_str(), line.length());
line = "";
} else {
line = line + ch;
}
}