From fec848dba730b827e29c82c28cc34222ca89ed07 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 6 Jun 2012 16:05:30 +0800 Subject: [PATCH] att: Start application error codes from the beginning of the range Application error codes start off with 0x80 onwards. In CSSv2 the range 0xE0-0xFF is reserved for "Common Profile Error Codes" so we should ensure not to mix that with our own definitions. --- attrib/att.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/attrib/att.h b/attrib/att.h index 8979c9567..144513fe6 100644 --- a/attrib/att.h +++ b/attrib/att.h @@ -71,9 +71,9 @@ #define ATT_ECODE_UNSUPP_GRP_TYPE 0x10 #define ATT_ECODE_INSUFF_RESOURCES 0x11 /* Application error */ -#define ATT_ECODE_IO 0xFF -#define ATT_ECODE_TIMEOUT 0xFE -#define ATT_ECODE_ABORTED 0xFD +#define ATT_ECODE_IO 0x80 +#define ATT_ECODE_TIMEOUT 0x81 +#define ATT_ECODE_ABORTED 0x82 /* Characteristic Property bit field */ #define ATT_CHAR_PROPER_BROADCAST 0x01 -- 2.47.3