update
This commit is contained in:
@@ -179,7 +179,7 @@ void BoardInterface::loadSettings() {
|
|||||||
liveData->settings = liveData->tmpSettings;
|
liveData->settings = liveData->tmpSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
void customConsoleCommand(String cmd);
|
// void customConsoleCommand(String cmd);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user