summaryrefslogtreecommitdiff
path: root/tinyusb/common/errors.h
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/common/errors.h')
-rw-r--r--tinyusb/common/errors.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tinyusb/common/errors.h b/tinyusb/common/errors.h
index 22db0721a..53c9379c3 100644
--- a/tinyusb/common/errors.h
+++ b/tinyusb/common/errors.h
@@ -49,6 +49,8 @@
#ifndef _TUSB_ERRORS_H_
#define _TUSB_ERRORS_H_
+#include "../tusb_cfg.h"
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -64,8 +66,10 @@ typedef enum {
ERROR_COUNT
}TUSB_Error_t;
-/// Enum to String for debugging purposes. Only available if \ref CFG_TUSB_DEBUG_LEVEL > 0
+#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[];
+#endif
#ifdef __cplusplus
}