QUERY · ISSUE
How use _thread library?
port-esp32
### borad:esp32
I expect to use this library to create a thread to detect whether a thread with the same function has been created and delete the previous thread with the same function.
CANDIDATE · PULL REQUEST
esp32: Use configured stack-limit-margin when creating threads.
port-esp32
Summary
This gives more stack margin for threads on ESP32C3 (it should have been done this way from the beginning). That's important for IDF v5.2, see https://github.com/micropython/micropython/pull/15523#issuecomment-2264356843
Testing
Ran the main test suite on an ESP32C3 using IDF v5.0.5. All tests pass (sans known failure math_domain_special.py).