Fixed stormcore stack issues

This commit is contained in:
Benjamin Vedder 2022-02-05 01:04:56 +01:00
parent c0a928e040
commit 24b076bdc4
3 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ typedef enum {
// Variables
static volatile bool i2c_running = false;
static THD_WORKING_AREA(smart_switch_thread_wa, 128);
static THD_WORKING_AREA(mux_thread_wa, 128);
static THD_WORKING_AREA(mux_thread_wa, 256);
static THD_WORKING_AREA(switch_color_thread_wa, 128);
static THD_FUNCTION(mux_thread, arg);
static THD_FUNCTION(switch_color_thread, arg);
@ -408,7 +408,7 @@ bool smart_switch_is_pressed(void) {
static THD_FUNCTION(switch_color_thread, arg) {
(void)arg;
chRegSetThreadName("switch_color_thread");
chRegSetThreadName("switch_color");
float switch_red = 0.0;
float switch_green = 0.0;
float switch_blue = 0.0;

View File

@ -263,7 +263,7 @@ void hw_try_restore_i2c(void) {
#if defined (HW_VER_IS_100S_V2)
static THD_FUNCTION(switch_color_thread, arg) {
(void)arg;
chRegSetThreadName("switch_color_thread");
chRegSetThreadName("switch_color");
float switch_red = 0.0;
float switch_green = 0.0;
float switch_blue = 0.0;

View File

@ -36,7 +36,7 @@ typedef enum {
// Variables
static volatile bool i2c_running = false;
static THD_WORKING_AREA(smart_switch_thread_wa, 128);
static THD_WORKING_AREA(mux_thread_wa, 128);
static THD_WORKING_AREA(mux_thread_wa, 256);
static THD_WORKING_AREA(switch_color_thread_wa, 128);
static THD_FUNCTION(mux_thread, arg);
static THD_FUNCTION(switch_color_thread, arg);
@ -392,7 +392,7 @@ bool smart_switch_is_pressed(void) {
static THD_FUNCTION(switch_color_thread, arg) {
(void)arg;
chRegSetThreadName("switch_color_thread");
chRegSetThreadName("switch_color");
float switch_red = 0.0;
float switch_green = 0.0;
float switch_blue = 0.0;