It seems AT+TXPW was wrongly sent since day 1!

This commit is contained in:
Bertrand Songis
2019-04-18 08:03:24 +02:00
parent 57e1b02670
commit 9189e43e13
+1 -1
View File
@@ -424,7 +424,7 @@ void bluetoothWakeup()
bluetoothState = BLUETOOTH_STATE_NAME_SENT;
}
else if (bluetoothState == BLUETOOTH_STATE_NAME_SENT && (!strncmp(line, "OK+", 3) || !strncmp(line, "Central:", 8) || !strncmp(line, "Peripheral:", 11))) {
bluetoothWriteString("AT+TXPW\r\n");
bluetoothWriteString("AT+TXPW0\r\n");
bluetoothState = BLUETOOTH_STATE_POWER_SENT;
}
else if (bluetoothState == BLUETOOTH_STATE_POWER_SENT && (!strncmp(line, "Central:", 8) || !strncmp(line, "Peripheral:", 11))) {