@@ -151,7 +151,7 @@ int NimbleController::OnGAPEvent(ble_gap_event* event) {
151151 StartAdvertising ();
152152 break ;
153153
154- case BLE_GAP_EVENT_CONNECT: {
154+ case BLE_GAP_EVENT_CONNECT:
155155 NRF_LOG_INFO (" Advertising event : BLE_GAP_EVENT_CONNECT" );
156156
157157 /* A new connection was established or a connection attempt failed. */
@@ -170,7 +170,7 @@ int NimbleController::OnGAPEvent(ble_gap_event* event) {
170170 systemTask.PushMessage (Pinetime::System::Messages::BleConnected);
171171 // Service discovery is deferred via systemtask
172172 }
173- } break ;
173+ break ;
174174
175175 case BLE_GAP_EVENT_DISCONNECT:
176176 NRF_LOG_INFO (" Advertising event : BLE_GAP_EVENT_DISCONNECT" );
@@ -207,7 +207,8 @@ int NimbleController::OnGAPEvent(ble_gap_event* event) {
207207 break ;
208208
209209 case BLE_GAP_EVENT_MTU:
210- 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 );
210+ NRF_LOG_INFO (" mtu update event; conn_handle=%d cid=%d mtu=%d\n " ,
211+ event->mtu .conn_handle , event->mtu .channel_id , event->mtu .value );
211212 break ;
212213
213214 case BLE_GAP_EVENT_REPEAT_PAIRING: {
@@ -224,8 +225,7 @@ int NimbleController::OnGAPEvent(ble_gap_event* event) {
224225 /* Return BLE_GAP_REPEAT_PAIRING_RETRY to indicate that the host should
225226 * continue with the pairing operation.
226227 */
227- }
228- return BLE_GAP_REPEAT_PAIRING_RETRY;
228+ } return BLE_GAP_REPEAT_PAIRING_RETRY;
229229
230230 case BLE_GAP_EVENT_NOTIFY_RX: {
231231 /* Peer sent us a notification or indication. */
@@ -260,7 +260,7 @@ uint16_t NimbleController::connHandle() {
260260}
261261
262262void NimbleController::NotifyBatteryLevel (uint8_t level) {
263- if (connectionHandle != BLE_HS_CONN_HANDLE_NONE) {
263+ if (connectionHandle != BLE_HS_CONN_HANDLE_NONE) {
264264 batteryInformationService.NotifyBatteryLevel (connectionHandle, level);
265265 }
266266}
0 commit comments