From 119bd3a41e35657a671cdf8ac90b3b296fc78198 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Wed, 28 Aug 2024 15:10:07 +0200 Subject: [PATCH] Fix: Increase Huawei CAN task stack size the stack size was already increased by Andreas Boehm in df53f34b51 in the context of #1144 (SPI port manager). this change aligns the stack size to a power of two and adds comments. the commit also serves to place this change more prominently as a fix in the changelogs. --- src/Huawei_can.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Huawei_can.cpp b/src/Huawei_can.cpp index e4446a329..adab23f0e 100644 --- a/src/Huawei_can.cpp +++ b/src/Huawei_can.cpp @@ -236,7 +236,8 @@ void HuaweiCanClass::updateSettings(uint8_t huawei_miso, uint8_t huawei_mosi, ui _mode = HUAWEI_MODE_AUTO_INT; } - xTaskCreate(HuaweiCanCommunicationTask,"HUAWEI_CAN_0",2000,NULL,0,&_HuaweiCanCommunicationTaskHdl); + xTaskCreate(HuaweiCanCommunicationTask, "HUAWEI_CAN_0", 2048/*stack size*/, + NULL/*params*/, 0/*prio*/, &_HuaweiCanCommunicationTaskHdl); MessageOutput.println("[HuaweiCanClass::init] MCP2515 Initialized Successfully!"); _initialized = true;