Merge pull request #9151 from ZetaR60/RIOT_isr_debug

core/debug: fix debug.h use within ISRs
This commit is contained in:
Francisco Acosta 2018-05-27 23:01:55 +02:00 committed by GitHub
commit 202fd41b88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ extern "C" {
#include "cpu_conf.h"
#define DEBUG_PRINT(...) \
do { \
if ((sched_active_thread == NULL) || (sched_active_thread->stack_size > THREAD_EXTRA_STACKSIZE_PRINTF)) { \
if ((sched_active_thread == NULL) || (sched_active_thread->stack_size >= THREAD_EXTRA_STACKSIZE_PRINTF)) { \
printf(__VA_ARGS__); \
} \
else { \