summaryrefslogtreecommitdiff
path: root/tinyusb/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-01-22 18:19:05 +0700
committerhathach <[email protected]>2013-01-22 18:25:26 +0700
commitb5207ff146c1a71b2cfe65e34292496c42de34f2 (patch)
tree267391a825944dc6926d628445ba7aaa4ccb5c63 /tinyusb/common
parent3ffda2033a55093a1b1667ed22f523a9a8a6a3d4 (diff)
use unsigned char instead of char for error string
use #if 0 instead of // for remove code
Diffstat (limited to 'tinyusb/common')
-rw-r--r--tinyusb/common/errors.c2
-rw-r--r--tinyusb/common/errors.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/common/errors.c b/tinyusb/common/errors.c
index 58b9e6b8d..0b36a6c8b 100644
--- a/tinyusb/common/errors.c
+++ b/tinyusb/common/errors.c
@@ -39,7 +39,7 @@
#if TUSB_CFG_DEBUG == 3
-char const* const TUSB_ErrorStr[] =
+unsigned char const* const TUSB_ErrorStr[] =
{
ERROR_TABLE(ERROR_STRING)
0
diff --git a/tinyusb/common/errors.h b/tinyusb/common/errors.h
index e771794c1..bf1998365 100644
--- a/tinyusb/common/errors.h
+++ b/tinyusb/common/errors.h
@@ -76,7 +76,7 @@ typedef enum {
#if TUSB_CFG_DEBUG == 3
/// Enum to String for debugging purposes. Only available if \ref TUSB_CFG_DEBUG > 0
-extern char const* const TUSB_ErrorStr[];
+extern unsigned char const* const TUSB_ErrorStr[];
#endif
#ifdef __cplusplus