We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 931d301 commit 32114b3Copy full SHA for 32114b3
lmic/oslmic.h
@@ -44,7 +44,7 @@ typedef const char* str_t;
44
if(!(cond)) { fprintf(stderr, "ASSERTION FAILED: %s at %s:%d\n", \
45
#cond, __FILE__, __LINE__); hal_failed(); } } while (0)
46
#elif defined(CFG_DEBUG)
47
-#define ASSERT(cond) do { if(!(cond)) { debug_printf("%s:%d: assertion failed\r\n", __FILE__, __LINE__); hal_failed(); } } while (0)
+#define ASSERT(cond) do { if(!(cond)) { hal_enableIRQs(); debug_printf("%s:%d: assertion failed\r\n", __FILE__, __LINE__); hal_failed(); } } while (0)
48
#else
49
#define ASSERT(cond) do { if(!(cond)) hal_failed(); } while (0)
50
#endif
0 commit comments