Skip to content

Commit 6d5ee43

Browse files
committed
Increased size of stack in tasks to fix overflow crashes in BaseStation
1 parent 7a97ec4 commit 6d5ee43

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/NodeControllerCore.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,22 @@ bool NodeControllerCore::Init(std::function<void(uint8_t nodeID, uint16_t messag
6161
//Start tasks
6262
xTaskCreate(this->start_receive_to_rx_queue_task,
6363
"start_rx_task_impl",
64-
2048,
64+
10000, //TODO: Not sure what the stack size should be for this task, 10000 is just a guess, 2048 is default but causes stack overflow crashes in base station
6565
this,
6666
10,
6767
NULL);
6868

6969
xTaskCreate(this->start_rx_queue_event_task,
7070
"start_rx_queue_event_task_impl",
71-
2048,
71+
10000,
7272
this,
7373
20,
7474
NULL);
7575

7676
//Create task to transmit messages from tx_queue
7777
xTaskCreate(&NodeControllerCore::transmit_tx_queue,
7878
"transmit_tx_queue",
79-
2048,
79+
10000,
8080
&tx_queue,
8181
30,
8282
NULL);

0 commit comments

Comments
 (0)