Skip to content

Commit 88ea692

Browse files
ci(pre-commit): Apply automatic fixes
1 parent a4d0393 commit 88ea692

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Diff for: libraries/BLE/src/BLEClient.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class BLEClient {
4242
void disconnect(); // Disconnect from the remote BLE Server
4343
BLEAddress getPeerAddress(); // Get the address of the remote BLE Server
4444
int getRssi(); // Get the RSSI of the remote BLE Server
45-
std::map<std::string, BLERemoteService *> *getServices(); // Get a map of the services offered by the remote BLE Server
45+
std::map<std::string, BLERemoteService *> *getServices(); // Get a map of the services offered by the remote BLE Server
4646
BLERemoteService *getService(const char *uuid); // Get a reference to a specified service offered by the remote BLE server.
4747
BLERemoteService *getService(BLEUUID uuid); // Get a reference to a specified service offered by the remote BLE server.
4848
String getValue(BLEUUID serviceUUID, BLEUUID characteristicUUID); // Get the value of a given characteristic at a given service.

Diff for: libraries/BLE/src/BLERemoteService.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ void BLERemoteService::retrieveCharacteristics() {
179179
// We now have a new characteristic ... let us add that to our set of known characteristics
180180
BLERemoteCharacteristic *pNewRemoteCharacteristic = new BLERemoteCharacteristic(result.char_handle, BLEUUID(result.uuid), result.properties, this);
181181

182-
m_characteristicMap.insert(std::pair<std::string, BLERemoteCharacteristic *>(pNewRemoteCharacteristic->getUUID().toString().c_str(), pNewRemoteCharacteristic));
182+
m_characteristicMap.insert(
183+
std::pair<std::string, BLERemoteCharacteristic *>(pNewRemoteCharacteristic->getUUID().toString().c_str(), pNewRemoteCharacteristic)
184+
);
183185
m_characteristicMapByHandle.insert(std::pair<uint16_t, BLERemoteCharacteristic *>(result.char_handle, pNewRemoteCharacteristic));
184186
offset++; // Increment our count of number of descriptors found.
185187
} // Loop forever (until we break inside the loop).

Diff for: libraries/BLE/src/BLEScan.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ void BLEScan::handleGAPEvent(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_
130130
m_pAdvertisedDeviceCallbacks->onResult(*advertisedDevice);
131131
}
132132
if (!m_wantDuplicates && !found) { // if no callback and not want duplicate, and not already in vector, record it
133-
m_scanResults.m_vectorAdvertisedDevices.insert(std::pair<std::string, BLEAdvertisedDevice *>(advertisedAddress.toString().c_str(), advertisedDevice));
133+
m_scanResults.m_vectorAdvertisedDevices.insert(std::pair<std::string, BLEAdvertisedDevice *>(advertisedAddress.toString().c_str(), advertisedDevice)
134+
);
134135
shouldDelete = false;
135136
}
136137
if (shouldDelete) {

0 commit comments

Comments
 (0)