• Rodrigo Garcia's avatar
    Adds support to change LoopTask Stack size (#6025) · 82ec74a0
    Rodrigo Garcia authored
    ## Summary
    Arduino ```setup()``` and ```loop()``` run under a Task with a fixed Stack size of 8KB.
    Users may want to change this size.
    
    This PR adds this possibility by just adding a line of code, as for example:
    ``` dart
    ESP_LOOP_TASK_STACK_SIZE(16384);
    
    void setup() { 
    }
    
    void loop() { 
    }
    ```
    ## Impact
    None. It adds a new functionality to ESP32 Arduino.
    If ```ESP_LOOP_TASK_STACK_SIZE(newSize);``` is not declared/used, it will compile the sketch with the default stack size of 8KB.
    
    ## Related links
    fix #6010 
    
    https://github.com/espressif/arduino-esp32/issues/6010#issuecomment-992701658
    Thanks @igrr for the suggestion!
    82ec74a0
main.cpp 1.57 KB