From e8619b327be482bc2d93b9a5a8215f497589e37d Mon Sep 17 00:00:00 2001 From: Vincent Dupont Date: Mon, 18 Mar 2019 18:14:31 +0100 Subject: [PATCH] thread: allow overriding THREAD_PRIORITY_MAIN --- core/include/thread.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/include/thread.h b/core/include/thread.h index 418b885cff..69521e070b 100644 --- a/core/include/thread.h +++ b/core/include/thread.h @@ -282,7 +282,9 @@ struct _thread { * @def THREAD_PRIORITY_MAIN * @brief Priority of the main thread */ +#ifndef THREAD_PRIORITY_MAIN #define THREAD_PRIORITY_MAIN (THREAD_PRIORITY_MIN - (SCHED_PRIO_LEVELS/2)) +#endif /** * @name Optional flags for controlling a threads initial state