Skip to content

Fix ThreadDebug warnings when building for nRF52* #65

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

Merged
merged 1 commit into from
Oct 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions libraries/ThreadDebug/src/ThreadDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,12 @@ static const char* g_threadNamesToIgnore[] = {
#define EXC_RETURN_THREADMODE_MAINSTACK 0x9

// Macro to make is easier to calculate array size.
#undef ARRAY_SIZE
#define ARRAY_SIZE(X) (sizeof(X)/sizeof(X[0]))

// Assert routine that will dump error text to USB GDB connection before entering infinite loop. If user is logging MRI
// remote communications then they will see the error text in the log before debug stub becomes unresponseive.
#undef ASSERT
#define ASSERT(X) \
if (!(X)) { \
Serial.print("Assertion Failed: "); \
Expand Down