diff --git a/components/button/include/button.hpp b/components/button/include/button.hpp index 31268742e..0dd47702c 100644 --- a/components/button/include/button.hpp +++ b/components/button/include/button.hpp @@ -52,6 +52,10 @@ class Button { InterruptType interrupt_type = InterruptType::ANY_EDGE; ///< Interrupt type to use for the GPIO bool pullup_enabled = false; ///< Whether to enable the pullup resistor bool pulldown_enabled = false; ///< Whether to enable the pulldown resistor + size_t task_stack_size_bytes = + 4 * 1024; ///< Stack size for the task. @note This may need to be increased if the + ///< callback is doing a lot of work (esp. string manipulation, calling many + ///< functions, etc.) espp::Logger::Verbosity log_level = espp::Logger::Verbosity::WARN; ///< Log level for this class }; @@ -89,7 +93,7 @@ class Button { espp::Task::Config{.name = "Button", .callback = std::bind(&Button::task_callback, this, std::placeholders::_1, std::placeholders::_2), - .stack_size_bytes = 4 * 1024}); + .stack_size_bytes = config.task_stack_size_bytes}); task_->start(); } diff --git a/docs/adc/adc_types.html b/docs/adc/adc_types.html index 5d91a33ab..20a8b2692 100644 --- a/docs/adc/adc_types.html +++ b/docs/adc/adc_types.html @@ -139,7 +139,7 @@
Whether to enable the pulldown resistor.
+Stack size for the task.
+Note
+This may need to be increased if the callback is doing a lot of work (esp. string manipulation, calling many functions, etc.)
+Warning
-doxygenfunction: Unable to resolve function “to_time_t” with arguments None in doxygen xml output for project “esp-docs” from directory: /Users/bob/esp-cpp/espp/doc/_build/en/esp32/xml_in/. +
doxygenfunction: Unable to resolve function “to_time_t” with arguments None in doxygen xml output for project “esp-docs” from directory: /Users/bob/backbone/lodestone/components/espp/doc/_build/en/esp32/xml_in/. Potential matches:
- template<typename TP> std::time_t to_time_t(TP tp)
diff --git a/docs/ftp/index.html b/docs/ftp/index.html
index 7654ff924..8c0560e57 100644
--- a/docs/ftp/index.html
+++ b/docs/ftp/index.html
@@ -128,7 +128,7 @@