Bluetooth::writeString() now adds CRLF automatically

This commit is contained in:
Bertrand Songis
2019-04-25 11:28:55 +02:00
parent a75548c360
commit d8b3086fde
2 changed files with 13 additions and 13 deletions
+1 -3
View File
@@ -1164,9 +1164,7 @@ int cliBlueTooth(const char ** argv)
{
int baudrate = 0;
if (!strncmp(argv[1], "AT", 2) || !strncmp(argv[1], "TTM", 3)) {
char command[32];
strAppend(strAppend(command, argv[1]), "\r\n");
bluetooth.writeString(command);
bluetooth.writeString(argv[1]);
char * line = bluetooth.readline();
serialPrint("<BT %s", line);
}