Skip to content

Commit 0f88eeb

Browse files
committed
src: apply clang-format
Signed-off-by: Nick Schonning <nschonni@gmail.com>
1 parent 8b28b21 commit 0f88eeb

1,353 files changed

Lines changed: 62240 additions & 54129 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/bluetooth-fw/nimble/advert.c

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ static int prv_device_name_read_event_cb(uint16_t conn_handle, const struct ble_
4040
static int prv_device_name_read_op_start(void *ctx) {
4141
const uint16_t conn_handle = *(uint16_t *)ctx;
4242

43-
int rc = ble_gattc_read_by_uuid(conn_handle, 1, UINT16_MAX,
44-
(ble_uuid_t *)&s_device_name_chr_uuid,
43+
int rc = ble_gattc_read_by_uuid(conn_handle, 1, UINT16_MAX, (ble_uuid_t *)&s_device_name_chr_uuid,
4544
prv_device_name_read_event_cb, NULL);
4645
if (rc != 0) {
4746
PBL_LOG_ERR("Pairing device name read failed to start (rc=0x%04x)", (uint16_t)rc);
@@ -61,7 +60,9 @@ void bt_driver_advert_advertising_disable(void) {
6160
PBL_ASSERT(rc == 0, "Failed to stop advertising (0x%04x)", (uint16_t)rc);
6261
}
6362

64-
bool bt_driver_advert_client_get_tx_power(int8_t *tx_power) { return false; }
63+
bool bt_driver_advert_client_get_tx_power(int8_t *tx_power) {
64+
return false;
65+
}
6566

6667
bool bt_driver_advert_set_advertising_data(const BLEAdData *ad_data) {
6768
int rc;
@@ -84,7 +85,8 @@ bool bt_driver_advert_set_advertising_data(const BLEAdData *ad_data) {
8485

8586
static void prv_handle_connection_event(struct ble_gap_event *event) {
8687
// we only want to notify on a successful connection
87-
if (event->connect.status != 0) return;
88+
if (event->connect.status != 0)
89+
return;
8890

8991
struct ble_gap_conn_desc desc;
9092
if (ble_gap_conn_find(event->connect.conn_handle, &desc) != 0) {
@@ -171,8 +173,7 @@ static void prv_handle_enc_change_event(struct ble_gap_event *event) {
171173
}
172174

173175
PBL_LOG_INFO("Encryption change: status=0x%04x encrypted=%u bonded=%u",
174-
(uint16_t)event->enc_change.status, desc.sec_state.encrypted,
175-
desc.sec_state.bonded);
176+
(uint16_t)event->enc_change.status, desc.sec_state.encrypted, desc.sec_state.bonded);
176177

177178
struct BleEncryptionChange enc_change_event = {
178179
.encryption_enabled = desc.sec_state.encrypted,
@@ -185,8 +186,7 @@ static void prv_handle_enc_change_event(struct ble_gap_event *event) {
185186

186187
static void prv_handle_conn_params_updated_event(struct ble_gap_event *event) {
187188
if (event->conn_update.status != 0) {
188-
PBL_LOG_ERR("Connection parameters update failed: 0x%04x",
189-
(uint16_t)event->conn_update.status);
189+
PBL_LOG_ERR("Connection parameters update failed: 0x%04x", (uint16_t)event->conn_update.status);
190190
return;
191191
}
192192

@@ -196,10 +196,11 @@ static void prv_handle_conn_params_updated_event(struct ble_gap_event *event) {
196196
return;
197197
}
198198

199-
PBL_LOG_INFO("Connection parameters updated: "
200-
"itvl=%u ms, latency=%u, spvn timeout=%u ms",
201-
desc.conn_itvl * BLE_HCI_CONN_ITVL / 1000, desc.conn_latency,
202-
desc.supervision_timeout * BLE_HCI_CONN_SPVN_TMO_UNITS);
199+
PBL_LOG_INFO(
200+
"Connection parameters updated: "
201+
"itvl=%u ms, latency=%u, spvn timeout=%u ms",
202+
desc.conn_itvl * BLE_HCI_CONN_ITVL / 1000, desc.conn_latency,
203+
desc.supervision_timeout * BLE_HCI_CONN_SPVN_TMO_UNITS);
203204

204205
struct BleConnectionUpdateCompleteEvent conn_params_update_event = {
205206
.status = HciStatusCode_Success,
@@ -213,12 +214,13 @@ static void prv_handle_conn_params_updated_event(struct ble_gap_event *event) {
213214
static void prv_handle_conn_update_req_event(struct ble_gap_event *event) {
214215
*event->conn_update_req.self_params = *event->conn_update_req.peer_params;
215216

216-
PBL_LOG_INFO("Connection update request: "
217-
"itvl=(%u, %u) ms, latency=%u, spvn timeout=%u ms",
218-
event->conn_update_req.self_params->itvl_min * BLE_HCI_CONN_ITVL / 1000,
219-
event->conn_update_req.self_params->itvl_max * BLE_HCI_CONN_ITVL / 1000,
220-
event->conn_update_req.self_params->latency,
221-
event->conn_update_req.self_params->supervision_timeout * BLE_HCI_CONN_SPVN_TMO_UNITS);
217+
PBL_LOG_INFO(
218+
"Connection update request: "
219+
"itvl=(%u, %u) ms, latency=%u, spvn timeout=%u ms",
220+
event->conn_update_req.self_params->itvl_min * BLE_HCI_CONN_ITVL / 1000,
221+
event->conn_update_req.self_params->itvl_max * BLE_HCI_CONN_ITVL / 1000,
222+
event->conn_update_req.self_params->latency,
223+
event->conn_update_req.self_params->supervision_timeout * BLE_HCI_CONN_SPVN_TMO_UNITS);
222224
}
223225

224226
static void prv_handle_passkey_event(struct ble_gap_event *event) {
@@ -283,9 +285,9 @@ extern int pebble_pairing_service_get_connectivity_send_notification(uint16_t co
283285
uint16_t attr_handle);
284286
static void prv_handle_subscription_event(struct ble_gap_event *event) {
285287
PBL_LOG_DBG("prv_handle_subscription_event: connhandle: %d attr:%d notify:%d/%d indicate:%d/%d",
286-
event->subscribe.conn_handle, event->subscribe.attr_handle,
287-
event->subscribe.prev_notify, event->subscribe.cur_notify,
288-
event->subscribe.prev_indicate, event->subscribe.cur_indicate);
288+
event->subscribe.conn_handle, event->subscribe.attr_handle,
289+
event->subscribe.prev_notify, event->subscribe.cur_notify,
290+
event->subscribe.prev_indicate, event->subscribe.cur_indicate);
289291
}
290292

291293
static void prv_handle_notification_rx_event(struct ble_gap_event *event) {
@@ -311,9 +313,7 @@ static void prv_handle_notification_rx_event(struct ble_gap_event *event) {
311313

312314
static void prv_handle_notification_tx_event(struct ble_gap_event *event) {
313315
PBL_LOG_DBG("notification tx event; status=%d attr_handle=%d indication=%d\n",
314-
event->notify_tx.status,
315-
event->notify_tx.attr_handle,
316-
event->notify_tx.indication);
316+
event->notify_tx.status, event->notify_tx.attr_handle, event->notify_tx.indication);
317317
}
318318

319319
static int prv_handle_repeat_pairing_event(struct ble_gap_event *event) {
@@ -342,13 +342,12 @@ static int prv_handle_repeat_pairing_event(struct ble_gap_event *event) {
342342

343343
static void prv_handle_phy_update_event(struct ble_gap_event *event) {
344344
if (event->phy_updated.status != 0) {
345-
PBL_LOG_ERR("PHY update failed: 0x%04x",
346-
(uint16_t)event->phy_updated.status);
345+
PBL_LOG_ERR("PHY update failed: 0x%04x", (uint16_t)event->phy_updated.status);
347346
return;
348347
}
349348

350349
PBL_LOG_DBG("PHY update complete; conn_handle=%d, tx_phy=%d, rx_phy=%d",
351-
event->phy_updated.conn_handle, event->phy_updated.tx_phy, event->phy_updated.rx_phy);
350+
event->phy_updated.conn_handle, event->phy_updated.tx_phy, event->phy_updated.rx_phy);
352351
}
353352

354353
static int prv_handle_gap_event(struct ble_gap_event *event, void *arg) {
@@ -358,8 +357,7 @@ static int prv_handle_gap_event(struct ble_gap_event *event, void *arg) {
358357
prv_handle_connection_event(event);
359358
break;
360359
case BLE_GAP_EVENT_DISCONNECT:
361-
PBL_LOG_DBG("BLE_GAP_EVENT_DISCONNECT reason=0x%x",
362-
event->disconnect.reason);
360+
PBL_LOG_DBG("BLE_GAP_EVENT_DISCONNECT reason=0x%x", event->disconnect.reason);
363361
prv_handle_disconnection_event(event);
364362
break;
365363
case BLE_GAP_EVENT_ENC_CHANGE:

src/bluetooth-fw/nimble/bt_classic_stubs.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33

44
#include <stdint.h>
55

6-
uint32_t sys_app_comm_get_sniff_interval(void) { return 0; }
6+
uint32_t sys_app_comm_get_sniff_interval(void) {
7+
return 0;
8+
}

src/bluetooth-fw/nimble/comm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ bool bt_driver_comm_schedule_send_next_job(CommSession *session) {
1414
return true; // we croak if a task cannot be scheduled on KernelMain
1515
}
1616

17-
bool bt_driver_comm_is_current_task_send_next_task(void) { return launcher_task_is_current_task(); }
17+
bool bt_driver_comm_is_current_task_send_next_task(void) {
18+
return launcher_task_is_current_task();
19+
}

src/bluetooth-fw/nimble/gap_le_device_name.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ static int prv_device_name_read_event_cb(uint16_t conn_handle, const struct ble_
2626

2727
if (error->status != 0) {
2828
if (error->status != BLE_HS_EDONE) {
29-
PBL_LOG_ERR("prv_device_name_read_event_cb error=%d",
30-
error->status);
29+
PBL_LOG_ERR("prv_device_name_read_event_cb error=%d", error->status);
3130
}
3231
// Frees arg (the op context); must be the last use of it
3332
nimble_gattc_op_queue_complete();
@@ -36,8 +35,7 @@ static int prv_device_name_read_event_cb(uint16_t conn_handle, const struct ble_
3635

3736
const uint16_t name_len = OS_MBUF_PKTLEN(attr->om);
3837

39-
PBL_LOG_DBG("Device name read cb: conn=%u handle=%u len=%u", conn_handle, attr->handle,
40-
name_len);
38+
PBL_LOG_DBG("Device name read cb: conn=%u handle=%u len=%u", conn_handle, attr->handle, name_len);
4139

4240
char *device_name = kernel_zalloc_check(name_len + 1);
4341
if (ble_hs_mbuf_to_flat(attr->om, device_name, name_len, NULL) != 0) {

src/bluetooth-fw/nimble/gap_le_scan.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ bool bt_driver_start_le_scan(bool active_scan, bool use_white_list_filter, bool
88
return true;
99
}
1010

11-
bool bt_driver_stop_le_scan(void) { return true; }
11+
bool bt_driver_stop_le_scan(void) {
12+
return true;
13+
}

src/bluetooth-fw/nimble/gatt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
PBL_LOG_MODULE_DECLARE(bt, CONFIG_BT_LOG_LEVEL);
1515

16-
void bt_driver_gatt_respond_read_subscription(uint32_t transaction_id, uint16_t response_code) {}
16+
void bt_driver_gatt_respond_read_subscription(uint32_t transaction_id, uint16_t response_code) {
17+
}
1718

1819
void bt_driver_gatt_send_changed_indication(const BTDeviceInternal *device,
1920
const ATTHandleRange *data) {

src/bluetooth-fw/nimble/gatt_client_discovery.c

Lines changed: 27 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,9 @@ static bool prv_find_dsc_by_uuid(ListNode *node, void *data) {
156156
return ble_uuid_cmp(&dsc_node->descriptor.uuid.u, dsc_uuid) == 0;
157157
}
158158

159-
static bool prv_find_dsc_uuid(GATTServiceDiscoveryContext *context,
160-
const ble_uuid_t *svc_uuid,
161-
const ble_uuid_t *chr_uuid,
162-
const ble_uuid_t *dsc_uuid,
163-
uint16_t *chr_handle,
164-
uint16_t *dsc_handle) {
159+
static bool prv_find_dsc_uuid(GATTServiceDiscoveryContext *context, const ble_uuid_t *svc_uuid,
160+
const ble_uuid_t *chr_uuid, const ble_uuid_t *dsc_uuid,
161+
uint16_t *chr_handle, uint16_t *dsc_handle) {
165162
GATTServiceDiscoveryServiceNode *service_node = (GATTServiceDiscoveryServiceNode *)list_find(
166163
context->services, prv_find_svc_by_uuid, (void *)svc_uuid);
167164
if (service_node == NULL) {
@@ -195,12 +192,10 @@ typedef struct {
195192
static int prv_on_svc_chgd_subscribe(uint16_t conn_handle, const struct ble_gatt_error *error,
196193
struct ble_gatt_attr *attr, void *arg) {
197194
if (error->status != 0) {
198-
PBL_LOG_ERR("Failed to subscribe to service changed: 0x%" PRIx16,
199-
error->status);
195+
PBL_LOG_ERR("Failed to subscribe to service changed: 0x%" PRIx16, error->status);
200196
} else {
201197
GATTServiceDiscoveryDescriptorContext *ctx = arg;
202-
bt_driver_cb_gatt_client_discovery_handle_service_changed(ctx->connection,
203-
ctx->chr_handle);
198+
bt_driver_cb_gatt_client_discovery_handle_service_changed(ctx->connection, ctx->chr_handle);
204199

205200
PBL_LOG_DBG("Subscribed to service changed");
206201
}
@@ -210,29 +205,30 @@ static int prv_on_svc_chgd_subscribe(uint16_t conn_handle, const struct ble_gatt
210205
return 0;
211206
}
212207

213-
static void prv_convert_service_and_notify_os(uint16_t conn_handle, GATTServiceDiscoveryContext *context) {
208+
static void prv_convert_service_and_notify_os(uint16_t conn_handle,
209+
GATTServiceDiscoveryContext *context) {
214210
list_foreach(context->services, prv_convert_service_and_notify_os_cb, context->connection);
215211
bt_driver_cb_gatt_client_discovery_complete(context->connection, BTErrnoOK);
216212

217213
// Subscribe to service changed indications (BLE Core 6.0, part G 7.7.1)
218214
uint16_t chr_handle, dsc_handle;
219215
if (prv_find_dsc_uuid(context, BLE_UUID16_DECLARE(BLE_GATT_SVC_UUID16),
220216
BLE_UUID16_DECLARE(BLE_SVC_GATT_CHR_SERVICE_CHANGED_UUID16),
221-
BLE_UUID16_DECLARE(BLE_GATT_DSC_CLT_CFG_UUID16),
222-
&chr_handle, &dsc_handle)) {
217+
BLE_UUID16_DECLARE(BLE_GATT_DSC_CLT_CFG_UUID16), &chr_handle,
218+
&dsc_handle)) {
223219
uint16_t value;
224220
int ret;
225221

226-
GATTServiceDiscoveryDescriptorContext *ctx = kernel_zalloc_check(
227-
sizeof(GATTServiceDiscoveryDescriptorContext));
222+
GATTServiceDiscoveryDescriptorContext *ctx =
223+
kernel_zalloc_check(sizeof(GATTServiceDiscoveryDescriptorContext));
228224
ctx->connection = context->connection;
229225
ctx->chr_handle = chr_handle;
230226

231227
value = 0x0002;
232-
ret = ble_gattc_write_flat(conn_handle, dsc_handle,
233-
&value, sizeof(value), prv_on_svc_chgd_subscribe, ctx);
228+
ret = ble_gattc_write_flat(conn_handle, dsc_handle, &value, sizeof(value),
229+
prv_on_svc_chgd_subscribe, ctx);
234230
if (ret != 0) {
235-
PBL_LOG_ERR("Failed to subscribe to service changed: %d", ret);
231+
PBL_LOG_ERR("Failed to subscribe to service changed: %d", ret);
236232
}
237233
}
238234

@@ -264,8 +260,8 @@ static void prv_discover_next_dscs(uint16_t conn_handle, GATTServiceDiscoveryCon
264260
uint16_t end_handle = prv_get_last_dsc_handle(context);
265261
int rc = ble_gattc_disc_all_dscs(conn_handle, start_handle, end_handle, prv_find_dsc_cb, context);
266262
if (rc != 0) {
267-
PBL_LOG_ERR("ble_gattc_disc_all_dscs rc=0x%04x (0x%04x -> 0x%04x)",
268-
(uint16_t)rc, start_handle, end_handle);
263+
PBL_LOG_ERR("ble_gattc_disc_all_dscs rc=0x%04x (0x%04x -> 0x%04x)", (uint16_t)rc, start_handle,
264+
end_handle);
269265
}
270266
}
271267

@@ -275,8 +271,8 @@ static void prv_discover_next_chrs(uint16_t conn_handle, GATTServiceDiscoveryCon
275271
int rc = ble_gattc_disc_all_chrs(conn_handle, service_node->service.start_handle,
276272
service_node->service.end_handle, prv_find_chr_cb, context);
277273
if (rc != 0) {
278-
PBL_LOG_ERR("ble_gattc_disc_all_chrs rc=0x%04x (0x%04x -> 0x%04x)",
279-
(uint16_t)rc, service_node->service.start_handle, service_node->service.end_handle);
274+
PBL_LOG_ERR("ble_gattc_disc_all_chrs rc=0x%04x (0x%04x -> 0x%04x)", (uint16_t)rc,
275+
service_node->service.start_handle, service_node->service.end_handle);
280276
}
281277
}
282278

@@ -339,8 +335,7 @@ static int prv_find_dsc_cb(uint16_t conn_handle, const struct ble_gatt_error *er
339335
case 0:
340336
char chr_uuid_str[BLE_UUID_STR_LEN];
341337
ble_uuid_to_str(&dsc->uuid.u, chr_uuid_str);
342-
PBL_LOG_DBG("Found descriptor %s (hdl: 0x%" PRIx16 ")",
343-
chr_uuid_str, dsc->handle);
338+
PBL_LOG_DBG("Found descriptor %s (hdl: 0x%" PRIx16 ")", chr_uuid_str, dsc->handle);
344339

345340
GATTServiceDiscoveryDescriptorNode *dsc_node = prv_create_descriptor_node(dsc);
346341
GATTServiceDiscoveryCharacteristicNode *chr_node = prv_get_current_chr(context);
@@ -384,8 +379,7 @@ static int prv_find_dsc_cb(uint16_t conn_handle, const struct ble_gatt_error *er
384379
break;
385380

386381
default:
387-
PBL_LOG_ERR("Descriptor discovery error: %d",
388-
error->status);
382+
PBL_LOG_ERR("Descriptor discovery error: %d", error->status);
389383
if (error->status == BLE_HS_ETIMEOUT) {
390384
errno = BTErrnoServiceDiscoveryTimeout;
391385
} else if (error->status == BLE_HS_ENOTCONN) {
@@ -420,7 +414,7 @@ static int prv_find_chr_cb(uint16_t conn_handle, const struct ble_gatt_error *er
420414
char chr_uuid_str[BLE_UUID_STR_LEN];
421415
ble_uuid_to_str(&chr->uuid.u, chr_uuid_str);
422416
PBL_LOG_DBG("Found characteristic %s (val hdl: 0x%" PRIx16 ", def hdl: 0x%" PRIx16 ")",
423-
chr_uuid_str, chr->val_handle, chr->def_handle);
417+
chr_uuid_str, chr->val_handle, chr->def_handle);
424418

425419
GATTServiceDiscoveryCharacteristicNode *chr_node = prv_create_chr_node(chr);
426420
GATTServiceDiscoveryServiceNode *service_node = prv_get_current_service(context);
@@ -456,8 +450,7 @@ static int prv_find_chr_cb(uint16_t conn_handle, const struct ble_gatt_error *er
456450
break;
457451

458452
default:
459-
PBL_LOG_ERR("Characteristic discovery error: %d",
460-
error->status);
453+
PBL_LOG_ERR("Characteristic discovery error: %d", error->status);
461454
if (error->status == BLE_HS_ETIMEOUT) {
462455
errno = BTErrnoServiceDiscoveryTimeout;
463456
} else if (error->status == BLE_HS_ENOTCONN) {
@@ -491,17 +484,16 @@ static int prv_find_inc_svc_cb(uint16_t conn_handle, const struct ble_gatt_error
491484
case 0:
492485
if (service->start_handle < context->range.start ||
493486
service->end_handle > context->range.end) {
494-
return 0; // skip this service
487+
return 0; // skip this service
495488
}
496489

497490
GATTServiceDiscoveryServiceNode *service_node = prv_create_service_node(service);
498491
prv_list_append_or_set(&context->services, &service_node->node);
499492

500493
char service_uuid_str[BLE_UUID_STR_LEN];
501494
ble_uuid_to_str(&service->uuid.u, service_uuid_str);
502-
PBL_LOG_DBG("Found service %s, 0x%" PRIx16 "-0x%" PRIx16 " (total %lu)",
503-
service_uuid_str, service->start_handle, service->end_handle,
504-
list_count(context->services));
495+
PBL_LOG_DBG("Found service %s, 0x%" PRIx16 "-0x%" PRIx16 " (total %lu)", service_uuid_str,
496+
service->start_handle, service->end_handle, list_count(context->services));
505497
break;
506498

507499
case BLE_HS_EDONE:
@@ -621,4 +613,5 @@ BTErrno bt_driver_gatt_stop_discovery(GAPLEConnection *connection) {
621613
return BTErrnoOK;
622614
}
623615

624-
void bt_driver_gatt_handle_discovery_abandoned(void) {}
616+
void bt_driver_gatt_handle_discovery_abandoned(void) {
617+
}

src/bluetooth-fw/nimble/gatt_client_operations.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,26 @@ static BLEGATTError prv_gatt_error_code(uint16_t status) {
2828
static int prv_gatt_write_event_cb(uint16_t conn_handle, const struct ble_gatt_error *error,
2929
struct ble_gatt_attr *attr, void *arg) {
3030
if (error->status != 0U) {
31-
PBL_LOG_ERR("GATT write failed (hdl: 0x%" PRIx16 "): 0x%" PRIx16,
32-
error->att_handle, error->status);
31+
PBL_LOG_ERR("GATT write failed (hdl: 0x%" PRIx16 "): 0x%" PRIx16, error->att_handle,
32+
error->status);
3333
}
3434

3535
GattClientOpWriteResponse resp = {
3636
.hdr = {
3737
.type = GattClientOpResponseWrite,
3838
.error_code = prv_gatt_error_code(error->status),
3939
.context = arg,
40-
}};
40+
}
41+
};
4142
bt_driver_cb_gatt_client_operations_handle_response(&resp.hdr);
4243
return 0;
4344
}
4445

4546
static int prv_gatt_read_event_cb(uint16_t conn_handle, const struct ble_gatt_error *error,
4647
struct ble_gatt_attr *attr, void *arg) {
4748
if (error->status != 0U) {
48-
PBL_LOG_ERR("GATT read failed (hdl: 0x%" PRIx16 "): 0x%" PRIx16,
49-
error->att_handle, error->status);
49+
PBL_LOG_ERR("GATT read failed (hdl: 0x%" PRIx16 "): 0x%" PRIx16, error->att_handle,
50+
error->status);
5051
}
5152

5253
GattClientOpReadResponse resp = {
@@ -65,8 +66,7 @@ static int prv_gatt_read_event_cb(uint16_t conn_handle, const struct ble_gatt_er
6566

6667
BTErrno bt_driver_gatt_write_without_response(GAPLEConnection *connection, const uint8_t *value,
6768
size_t value_length, uint16_t att_handle) {
68-
PBL_LOG_VERBOSE("bt_driver_gatt_write_without_response: %d",
69-
att_handle);
69+
PBL_LOG_VERBOSE("bt_driver_gatt_write_without_response: %d", att_handle);
7070
uint16_t conn_handle;
7171
if (!pebble_device_to_nimble_conn_handle(&connection->device, &conn_handle)) {
7272
return BTErrnoInvalidState;

0 commit comments

Comments
 (0)