summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames A. Jerkins <evergreen@jamesjerkinscomputer.com>2021-09-01 22:50:56 -0500
committerJames A. Jerkins <evergreen@jamesjerkinscomputer.com>2021-09-01 22:50:56 -0500
commit3e1fe687b82d4df237b7b355fa31cb88713193fc (patch)
treea0646eb6d913b42b6461352279fec692f9bbf946
parentd69a8e84fa1906a661738ea034eae5f5f37c25bf (diff)
Fix styles issues - no change to functionality
-rw-r--r--src/components/ble/NimbleController.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/ble/NimbleController.cpp b/src/components/ble/NimbleController.cpp
index 0f486095..8e0fe756 100644
--- a/src/components/ble/NimbleController.cpp
+++ b/src/components/ble/NimbleController.cpp
@@ -151,7 +151,7 @@ int NimbleController::OnGAPEvent(ble_gap_event* event) {
StartAdvertising();
break;
- case BLE_GAP_EVENT_CONNECT: {
+ case BLE_GAP_EVENT_CONNECT:
NRF_LOG_INFO("Advertising event : BLE_GAP_EVENT_CONNECT");
/* A new connection was established or a connection attempt failed. */
@@ -170,7 +170,7 @@ int NimbleController::OnGAPEvent(ble_gap_event* event) {
systemTask.PushMessage(Pinetime::System::Messages::BleConnected);
// Service discovery is deferred via systemtask
}
- } break;
+ break;
case BLE_GAP_EVENT_DISCONNECT:
NRF_LOG_INFO("Advertising event : BLE_GAP_EVENT_DISCONNECT");
@@ -207,7 +207,8 @@ int NimbleController::OnGAPEvent(ble_gap_event* event) {
break;
case BLE_GAP_EVENT_MTU:
- NRF_LOG_INFO("mtu update event; conn_handle=%d cid=%d mtu=%d\n", event->mtu.conn_handle, event->mtu.channel_id, event->mtu.value);
+ NRF_LOG_INFO("mtu update event; conn_handle=%d cid=%d mtu=%d\n",
+ event->mtu.conn_handle, event->mtu.channel_id, event->mtu.value);
break;
case BLE_GAP_EVENT_REPEAT_PAIRING: {
@@ -224,8 +225,7 @@ int NimbleController::OnGAPEvent(ble_gap_event* event) {
/* Return BLE_GAP_REPEAT_PAIRING_RETRY to indicate that the host should
* continue with the pairing operation.
*/
- }
- return BLE_GAP_REPEAT_PAIRING_RETRY;
+ } return BLE_GAP_REPEAT_PAIRING_RETRY;
case BLE_GAP_EVENT_NOTIFY_RX: {
/* Peer sent us a notification or indication. */
@@ -260,7 +260,7 @@ uint16_t NimbleController::connHandle() {
}
void NimbleController::NotifyBatteryLevel(uint8_t level) {
- if(connectionHandle != BLE_HS_CONN_HANDLE_NONE) {
+ if (connectionHandle != BLE_HS_CONN_HANDLE_NONE) {
batteryInformationService.NotifyBatteryLevel(connectionHandle, level);
}
}