Skip to content

Commit

Permalink
Merge pull request #2266 from particle-iot/fix/ble/ch71263
Browse files Browse the repository at this point in the history
[wiring] BLE: return false if expected characteristic is not found.
  • Loading branch information
XuGuohui authored Jan 18, 2021
2 parents 11968f7 + edc0d3b commit f10774b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wiring/src/spark_wiring_ble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,7 @@ bool BlePeerDevice::getCharacteristicByDescription(BleCharacteristic& characteri
return true;
}
}
return true;
return false;
}

bool BlePeerDevice::getCharacteristicByDescription(BleCharacteristic& characteristic, const String& desc) const {
Expand Down Expand Up @@ -1806,7 +1806,7 @@ bool BlePeerDevice::getCharacteristicByDescription(const BleService& service, Bl
return true;
}
}
return true;
return false;
}

bool BlePeerDevice::getCharacteristicByDescription(const BleService& service, BleCharacteristic& characteristic, const String& desc) const {
Expand Down

0 comments on commit f10774b

Please sign in to comment.