This is an automated email from the ASF dual-hosted git repository. janc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 4c741eb65a394e26d3396804b25675c0b4215d09 Author: Piotr Narajowski <[email protected]> AuthorDate: Wed Sep 3 11:55:48 2025 +0200 nimble/host: fix coding style Fix coding style --- nimble/host/include/host/ble_gatt.h | 4 ++-- nimble/host/src/ble_gatt_priv.h | 12 ++++++------ nimble/host/src/ble_gatts.c | 12 ++++-------- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/nimble/host/include/host/ble_gatt.h b/nimble/host/include/host/ble_gatt.h index 3ce22d664..a8dafeba6 100644 --- a/nimble/host/include/host/ble_gatt.h +++ b/nimble/host/include/host/ble_gatt.h @@ -60,10 +60,10 @@ struct ble_hs_cfg; */ /** GATT service 16-bit UUID. */ -#define BLE_GATT_SVC_UUID16 0x1801 +#define BLE_GATT_SVC_UUID16 0x1801 /** GATT Client Characteristic Configuration descriptor 16-bit UUID. */ -#define BLE_GATT_DSC_CLT_CFG_UUID16 0x2902 +#define BLE_GATT_DSC_CLT_CFG_UUID16 0x2902 /** GATT Characteristic Extended Porperties descriptor 16-bit UUID. */ #define BLE_GATT_DSC_EXT_PROP_UUID16 0x2900 diff --git a/nimble/host/src/ble_gatt_priv.h b/nimble/host/src/ble_gatt_priv.h index 111a540b3..50e9a7d82 100644 --- a/nimble/host/src/ble_gatt_priv.h +++ b/nimble/host/src/ble_gatt_priv.h @@ -151,13 +151,13 @@ int ble_gattc_any_jobs(void); int ble_gattc_init(void); /*** @server. */ -#define BLE_GATTS_CLT_CFG_F_NOTIFY 0x0001 -#define BLE_GATTS_CLT_CFG_F_INDICATE 0x0002 -#define BLE_GATTS_CLT_CFG_F_MODIFIED 0x0080 /* Internal only. */ -#define BLE_GATTS_CLT_CFG_F_RESERVED 0xfffc +#define BLE_GATTS_CLT_CFG_F_NOTIFY 0x0001 +#define BLE_GATTS_CLT_CFG_F_INDICATE 0x0002 +#define BLE_GATTS_CLT_CFG_F_MODIFIED 0x0080 /* Internal only. */ +#define BLE_GATTS_CLT_CFG_F_RESERVED 0xfffc -#define BLE_GATTS_INC_SVC_LEN_NO_UUID 4 -#define BLE_GATTS_INC_SVC_LEN_UUID 6 +#define BLE_GATTS_INC_SVC_LEN_NO_UUID 4 +#define BLE_GATTS_INC_SVC_LEN_UUID 6 #define BLE_GATTS_CEP_F_RELIABLE_WRITE 0x0001 #define BLE_GATTS_CEP_F_AUX_WRITE 0x0002 diff --git a/nimble/host/src/ble_gatts.c b/nimble/host/src/ble_gatts.c index 199e8e469..dcd403e12 100644 --- a/nimble/host/src/ble_gatts.c +++ b/nimble/host/src/ble_gatts.c @@ -29,16 +29,12 @@ #define BLE_GATTS_INCLUDE_SZ 6 #define BLE_GATTS_CHR_MAX_SZ 19 -static const ble_uuid_t *uuid_pri = - BLE_UUID16_DECLARE(BLE_ATT_UUID_PRIMARY_SERVICE); +static const ble_uuid_t *uuid_pri = BLE_UUID16_DECLARE(BLE_ATT_UUID_PRIMARY_SERVICE); static const ble_uuid_t *uuid_sec = BLE_UUID16_DECLARE(BLE_ATT_UUID_SECONDARY_SERVICE); -static const ble_uuid_t *uuid_inc = - BLE_UUID16_DECLARE(BLE_ATT_UUID_INCLUDE); -static const ble_uuid_t *uuid_chr = - BLE_UUID16_DECLARE(BLE_ATT_UUID_CHARACTERISTIC); -static const ble_uuid_t *uuid_ccc = - BLE_UUID16_DECLARE(BLE_GATT_DSC_CLT_CFG_UUID16); +static const ble_uuid_t *uuid_inc = BLE_UUID16_DECLARE(BLE_ATT_UUID_INCLUDE); +static const ble_uuid_t *uuid_chr = BLE_UUID16_DECLARE(BLE_ATT_UUID_CHARACTERISTIC); +static const ble_uuid_t *uuid_ccc = BLE_UUID16_DECLARE(BLE_GATT_DSC_CLT_CFG_UUID16); static const ble_uuid_t *uuid_cep = BLE_UUID16_DECLARE(BLE_GATT_DSC_EXT_PROP_UUID16); static const struct ble_gatt_svc_def **ble_gatts_svc_defs;
