Skip to content

Commit

Permalink
Fix: Increase Huawei CAN task stack size
Browse files Browse the repository at this point in the history
the stack size was already increased by Andreas Boehm in df53f34 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.
  • Loading branch information
schlimmchen committed Aug 28, 2024
1 parent fff0576 commit 119bd3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Huawei_can.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 119bd3a

Please sign in to comment.