From 921ba019de1b99b1b9a1500b003793c79dd79b42 Mon Sep 17 00:00:00 2001
From: Rahix <rahix@rahix.de>
Date: Wed, 21 Aug 2019 01:16:19 +0200
Subject: [PATCH] fix(epicardium): Raise lifecycle task priority

The lifecycle task needs higher priority than the API to ensure it can
win the `api_mutex`, even during a busy payload.

This commit is potentially a fix for #94.

Signed-off-by: Rahix <rahix@rahix.de>
---
 epicardium/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/epicardium/main.c b/epicardium/main.c
index 7074d4df..90fa496f 100644
--- a/epicardium/main.c
+++ b/epicardium/main.c
@@ -91,7 +91,7 @@ int main(void)
 		    (const char *)"Lifecycle",
 		    configMINIMAL_STACK_SIZE * 4,
 		    NULL,
-		    tskIDLE_PRIORITY + 1,
+		    tskIDLE_PRIORITY + 3,
 		    NULL) != pdPASS) {
 		LOG_CRIT("startup", "Failed to create %s task!", "Lifecycle");
 		abort();
-- 
GitLab