Skip to content

Commit

Permalink
style(bHaptics): lint-fix clang-format for 0.7.0 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
leon0399 committed Jul 2, 2024
1 parent 8fda9ba commit 352378b
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions lib/bhaptics_ble/senseshift/bh/ble/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ namespace SenseShift::BH::BLE {
this->bleServer->getAdvertising()->setAppearance(this->config.appearance);
this->bleServer->getAdvertising()->setScanResponseData(*scanResponseData);

// Each characteristic needs 2 handles and descriptor 1 handle.
#if defined(BLUETOOTH_USE_NIMBLE) && BLUETOOTH_USE_NIMBLE == true
this->motorService = this->bleServer->createService(BH_BLE_SERVICE_MOTOR_UUID);
#else
this->motorService = this->bleServer->createService(BH_BLE_SERVICE_MOTOR_UUID, 30, 0);
#endif
// Each characteristic needs 2 handles and descriptor 1 handle.
#if defined(SS_BLE_USE_NIMBLE) && SS_BLE_USE_NIMBLE == true
this->motorService = this->bleServer->createService(BH_BLE_SERVICE_MOTOR_UUID);
#else
this->motorService = this->bleServer->createService(BH_BLE_SERVICE_MOTOR_UUID, 30, 0);
#endif

{
MotorCharCallbacks* motorCallbacks = new MotorCharCallbacks(this->motorHandler);
Expand Down Expand Up @@ -234,8 +234,8 @@ namespace SenseShift::BH::BLE {

{
auto* athGlobalChar = this->motorService->createCharacteristic(
BH_BLE_SERVICE_MOTOR_CHAR_ATH_GLOBAL_CONF_UUID,
PROPERTY_READ | PROPERTY_WRITE
BH_BLE_SERVICE_MOTOR_CHAR_ATH_GLOBAL_CONF_UUID,

Check warning on line 237 in lib/bhaptics_ble/senseshift/bh/ble/connection.cpp

View check run for this annotation

Codecov / codecov/patch

lib/bhaptics_ble/senseshift/bh/ble/connection.cpp#L236-L237

Added lines #L236 - L237 were not covered by tests
PROPERTY_READ | PROPERTY_WRITE
);
athGlobalChar->setCallbacks(new LogOutputCharCallbacks());

Check warning on line 240 in lib/bhaptics_ble/senseshift/bh/ble/connection.cpp

View check run for this annotation

Codecov / codecov/patch

lib/bhaptics_ble/senseshift/bh/ble/connection.cpp#L240

Added line #L240 was not covered by tests

Expand Down Expand Up @@ -280,10 +280,8 @@ namespace SenseShift::BH::BLE {
{
auto dfuService = this->bleServer->createService(BH_BLE_SERVICE_DFU_UUID);

auto* dfuControlChar = dfuService->createCharacteristic(
BH_BLE_SERVICE_DFU_CHAR_CONTROL_UUID,
PROPERTY_READ | PROPERTY_WRITE
);
auto* dfuControlChar =
dfuService->createCharacteristic(BH_BLE_SERVICE_DFU_CHAR_CONTROL_UUID, PROPERTY_READ | PROPERTY_WRITE);

Check warning on line 284 in lib/bhaptics_ble/senseshift/bh/ble/connection.cpp

View check run for this annotation

Codecov / codecov/patch

lib/bhaptics_ble/senseshift/bh/ble/connection.cpp#L283-L284

Added lines #L283 - L284 were not covered by tests
dfuService->start();
}

Expand Down

0 comments on commit 352378b

Please sign in to comment.