This commit is contained in:
Lubos Petrovic
2020-12-05 11:25:59 +01:00
parent 3dcfab24ea
commit a56668ae61
3 changed files with 3 additions and 3 deletions

View File

@@ -179,7 +179,7 @@ void BoardInterface::loadSettings() {
liveData->settings = liveData->tmpSettings; liveData->settings = liveData->tmpSettings;
} }
void customConsoleCommand(String cmd); // void customConsoleCommand(String cmd);
} }

View File

@@ -45,7 +45,7 @@ class BoardInterface {
void saveSettings(); void saveSettings();
void resetSettings(); void resetSettings();
void loadSettings(); void loadSettings();
void customConsoleCommand(String cmd); // void customConsoleCommand(String cmd);
}; };
#endif // BOARDINTERFACE_H #endif // BOARDINTERFACE_H

View File

@@ -636,7 +636,7 @@ void loop() {
if (Serial.available()) { if (Serial.available()) {
ch = Serial.read(); ch = Serial.read();
if (ch == '\r' || ch == '\n') { if (ch == '\r' || ch == '\n') {
board->customConsoleCommand(line); //board->customConsoleCommand(line);
line = line + ch; line = line + ch;
Serial.println(line); Serial.println(line);
liveData->pRemoteCharacteristicWrite->writeValue(line.c_str(), line.length()); liveData->pRemoteCharacteristicWrite->writeValue(line.c_str(), line.length());