From ac4c738e793e1e4ee92b70492b5d32672ec11c4f Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Thu, 10 Apr 2014 21:55:44 +0000 Subject: [PATCH] fix name of error code --- ble/att.c | 2 +- ble/att.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ble/att.c b/ble/att.c index 8fc855164..6d3b9e897 100644 --- a/ble/att.c +++ b/ble/att.c @@ -269,7 +269,7 @@ static inline uint16_t setup_error_atribute_not_found(uint8_t * response_buffer, } static inline uint16_t setup_error_invalid_handle(uint8_t * response_buffer, uint16_t request, uint16_t handle){ - return setup_error(response_buffer, request, handle, ATT_ERROR_ATTRIBUTE_INVALID); + return setup_error(response_buffer, request, handle, ATT_ERROR_INVALID_HANDLE); } static inline uint16_t setup_error_invalid_offset(uint8_t * response_buffer, uint16_t request, uint16_t handle){ diff --git a/ble/att.h b/ble/att.h index 94c52cf0d..70298a2a4 100644 --- a/ble/att.h +++ b/ble/att.h @@ -82,7 +82,7 @@ extern "C" { #define ATT_SIGNED_WRITE_COMAND 0xD2 // MARK: ATT Error Codes -#define ATT_ERROR_ATTRIBUTE_INVALID 0x01 +#define ATT_ERROR_INVALID_HANDLE 0x01 #define ATT_ERROR_READ_NOT_PERMITTED 0x02 #define ATT_ERROR_WRITE_NOT_PERMITTED 0x03 #define ATT_ERROR_INVALID_PDU 0x04