From 0731fdbbaa14756996a5671c95bafb1822156587 Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Wed, 7 Oct 2020 10:03:21 +0200 Subject: [PATCH] pkg/openwsn/scheduler: fix debugpins ordering --- pkg/openwsn/scheduler/scheduler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/openwsn/scheduler/scheduler.c b/pkg/openwsn/scheduler/scheduler.c index 7fee1702dd..84067b21c7 100644 --- a/pkg/openwsn/scheduler/scheduler.c +++ b/pkg/openwsn/scheduler/scheduler.c @@ -61,14 +61,14 @@ void scheduler_start(unsigned state) /* wait for events */ event_t *event; while ((event = event_wait_multi(_queues, TASKPRIO_MAX))) { - debugpins_task_clr(); + debugpins_task_set(); event->handler(event); /* remove from task list */ memarray_free(&_scheduler_vars.memarray, event); #if SCHEDULER_DEBUG_ENABLE scheduler_dbg.numTasksCur--; #endif - debugpins_task_set(); + debugpins_task_clr(); } }