Bluetooth flash firmware started

This commit is contained in:
Bertrand Songis
2019-04-25 11:03:20 +02:00
parent 3f5b7fa6dd
commit 3c842a6a43
3 changed files with 38 additions and 4 deletions
+3 -3
View File
@@ -1166,14 +1166,14 @@ int cliBlueTooth(const char ** argv)
if (!strncmp(argv[1], "AT", 2) || !strncmp(argv[1], "TTM", 3)) {
char command[32];
strAppend(strAppend(command, argv[1]), "\r\n");
bluetoothWriteString(command);
char * line = bluetoothReadline();
bluetooth.writeString(command);
char * line = bluetooth.readline();
serialPrint("<BT %s", line);
}
else if (toInt(argv, 1, &baudrate) > 0) {
if (baudrate > 0) {
bluetoothInit(baudrate);
char * line = bluetoothReadline();
char * line = bluetooth.readline();
serialPrint("<BT %s", line);
}
else {