Skip to content

Commit efde252

Browse files
author
IngHK
committed
improved CFG_TUSB_DEBUG handling due to compile errors
1 parent 4d88f14 commit efde252

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/tusb_debug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#if CFG_TUSB_DEBUG
4444

4545
// Enum to String for debugging purposes
46-
#if CFG_TUSB_DEBUG >= CFG_TUH_LOG_LEVEL
46+
#if CFG_TUSB_DEBUG >= CFG_TUH_LOG_LEVEL || CFG_TUSB_DEBUG >= CFG_TUD_LOG_LEVEL
4747
extern char const* const tu_str_speed[];
4848
extern char const* const tu_str_std_request[];
4949
extern char const* const tu_str_xfer_result[];

src/tusb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ uint32_t tu_edpt_stream_read(tu_edpt_stream_t* s, void* buffer, uint32_t bufsize
419419
#if CFG_TUSB_DEBUG
420420
#include <ctype.h>
421421

422-
#if CFG_TUSB_DEBUG >= CFG_TUH_LOG_LEVEL
422+
#if CFG_TUSB_DEBUG >= CFG_TUH_LOG_LEVEL || CFG_TUSB_DEBUG >= CFG_TUD_LOG_LEVEL
423423

424424
char const* const tu_str_speed[] = { "Full", "Low", "High" };
425425
char const* const tu_str_std_request[] =

0 commit comments

Comments
 (0)