Skip to content

Commit b640900

Browse files
committed
Adds support to change LoopTask Stack size
1 parent 301f93d commit b640900

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libraries/ESP32/examples/ArduinoStackSize/ArduinoStackSize.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515
In this example, you can verify it by changing or just commenting out SET_LOOP_TASK_STACK_SIZE();
1616
*/
1717

18-
#define ARDUINO_TASK_STACK_SIZE (16*1024) // 16KB
1918

2019
// This sets Arduino Stack Size - comment this line to use default 8K stack size
21-
SET_LOOP_TASK_STACK_SIZE(ARDUINO_TASK_STACK_SIZE);
20+
SET_LOOP_TASK_STACK_SIZE(16*1024); // 16KB
2221

2322
void setup() {
2423
Serial.begin(115200);

0 commit comments

Comments
 (0)