This commit is contained in:
Lubos Petrovic
2020-12-20 18:03:35 +01:00
parent 09440f686b
commit 86caff56ab
4 changed files with 144 additions and 32 deletions

View File

@@ -354,5 +354,7 @@ void CommObd2Ble4::mainLoop() {
void CommObd2Ble4::executeCommand(String cmd) {
String tmpStr = cmd + "\r";
liveData->pRemoteCharacteristicWrite->writeValue(tmpStr.c_str(), tmpStr.length());
if (liveData->bleConnected) {
liveData->pRemoteCharacteristicWrite->writeValue(tmpStr.c_str(), tmpStr.length());
}
}