From 2227d195c59ea41fbcd8391ebde466ce8cec53b1 Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Sun, 12 Jan 2025 00:44:21 -0700 Subject: [PATCH] fix(split): Proper scoping for local within switch. Minor compile fix. --- app/src/split/bluetooth/central.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/split/bluetooth/central.c b/app/src/split/bluetooth/central.c index 4c354b36b16..dcebfb0cc5c 100644 --- a/app/src/split/bluetooth/central.c +++ b/app/src/split/bluetooth/central.c @@ -582,7 +582,7 @@ static uint8_t split_central_chrc_discovery_func(struct bt_conn *conn, LOG_DBG("[ATTRIBUTE] handle %u", attr->handle); switch (params->type) { - case BT_GATT_DISCOVER_CHARACTERISTIC: + case BT_GATT_DISCOVER_CHARACTERISTIC: { const struct bt_uuid *chrc_uuid = ((struct bt_gatt_chrc *)attr->user_data)->uuid; if (bt_uuid_cmp(chrc_uuid, BT_UUID_DECLARE_128(ZMK_SPLIT_BT_CHAR_POSITION_STATE_UUID)) == @@ -665,6 +665,7 @@ static uint8_t split_central_chrc_discovery_func(struct bt_conn *conn, #endif /* IS_ENABLED(CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_FETCHING) */ } break; + } case BT_GATT_DISCOVER_STD_CHAR_DESC: #if IS_ENABLED(CONFIG_ZMK_INPUT_SPLIT) if (bt_uuid_cmp(slot->discover_params.uuid, BT_UUID_GATT_CCC) == 0) {