-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed compile errors due to untreated CFG_TUH_LOG_LEVEL #2347
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you, PR look good, though there is some slight changes requests
src/common/tusb_debug.h
Outdated
@@ -43,7 +43,7 @@ | |||
#if CFG_TUSB_DEBUG | |||
|
|||
// Enum to String for debugging purposes | |||
#if CFG_TUSB_DEBUG >= 2 | |||
#if CFG_TUSB_DEBUG >= CFG_TUH_LOG_LEVEL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since it is common for host and device, it should be
#if CFG_TUSB_DEBUG >= CFG_TUH_LOG_LEVEL || CFG_TUSB_DEBUG >= CFG_TUD_LOG_LEVEL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
I'm currently traveling without a notebook. I'll change it in a week |
Take your time, I am om vacation next week as well |
I changed it as suggested |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
look good, thank you
CFG_TUH_LOG_LEVEL is not treated in right way, if CFG_TUSB_DEBUG and CFG_TUH_LOG_LEVEL are 1