From 26015995993c56e9aa32d6946966fe8bfc4a4c9f Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Wed, 1 Jul 2015 07:31:24 +0100 Subject: [PATCH] #46: rename GATT_MTU_SIZE_DEFAULT to BLE_GATT_MTU_SIZE_DEFAULT. This avoids a name conflict with the contant defined in Nordic-SDK. --- ble/blecommon.h | 2 +- ble/services/UARTService.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ble/blecommon.h b/ble/blecommon.h index 7a6cd59..b572f08 100644 --- a/ble/blecommon.h +++ b/ble/blecommon.h @@ -127,7 +127,7 @@ enum ble_error_t { }; /** @brief Default MTU size. */ -static const unsigned GATT_MTU_SIZE_DEFAULT = 23; +static const unsigned BLE_GATT_MTU_SIZE_DEFAULT = 23; #ifdef __cplusplus } diff --git a/ble/services/UARTService.h b/ble/services/UARTService.h index 2b0ef49..3ba367b 100644 --- a/ble/services/UARTService.h +++ b/ble/services/UARTService.h @@ -41,7 +41,7 @@ extern const uint8_t UARTServiceRXCharacteristicUUID[UUID::LENGTH_OF_LONG_UUID] class UARTService { public: /**< Maximum length of data (in bytes) that can be transmitted by the UART service module to the peer. */ - static const unsigned BLE_UART_SERVICE_MAX_DATA_LEN = (GATT_MTU_SIZE_DEFAULT - 3); + static const unsigned BLE_UART_SERVICE_MAX_DATA_LEN = (BLE_GATT_MTU_SIZE_DEFAULT - 3); public: