From f6ff28ad8eb5e88a1985706bfc94657704e9c3f4 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Tue, 22 Mar 2022 23:50:57 -0700 Subject: Make arbitrary amounts of priorities Without affecting maximum static thread count --- src/cpu/irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cpu/irq.c b/src/cpu/irq.c index 3bd28e6..dcca9e8 100644 --- a/src/cpu/irq.c +++ b/src/cpu/irq.c @@ -49,7 +49,7 @@ unsigned long c_irq_handler(void) //} // Add task to handle the data else { - add_thread(handle_data, (void*)data, 7); + add_thread(handle_data, (void*)data, PRIORITIES-1); return 1; } } -- cgit v1.2.1