aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gui.c4
-rw-r--r--gui.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/gui.c b/gui.c
index 9f20c4d5..bd00d776 100644
--- a/gui.c
+++ b/gui.c
@@ -102,10 +102,10 @@ static void guiThread(const uint16_t interval) {
}
}
-Thread *guiInit(uint16_t interval) {
+Thread *guiInit(uint16_t interval, tprio_t priority) {
Thread *tp = NULL;
- tp = chThdCreateFromHeap(NULL, THD_WA_SIZE(10240), HIGHPRIO-1, guiThread, interval);
+ tp = chThdCreateFromHeap(NULL, THD_WA_SIZE(10240), priority, guiThread, interval);
return tp;
}
diff --git a/gui.h b/gui.h
index 4a6f741f..44c640a6 100644
--- a/gui.h
+++ b/gui.h
@@ -24,7 +24,7 @@ extern "C" {
enum {horizontal, vertical};
enum {inactive, active};
-Thread *guiInit(uint16_t interval);
+Thread *guiInit(uint16_t interval, tprio_t priority);
void guiPrintNode(BaseSequentialStream *chp);
uint8_t guiDrawButton(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, char *str, uint16_t fontColor, uint16_t buttonColor, uint8_t *active, uint8_t *state);