ota task stack size configurable

This commit is contained in:
feedc0de committed 2021-08-06 15:27:14 +02:00
1 parent f6205076cf
commit bbc1f643e2
2 files changed
+5 -3

No files matched your search

+2 -1
View File
@@ -27,7 +27,7 @@ enum OtaCloudUpdateStatus
class EspAsyncOta
{
public:
EspAsyncOta(const char *taskName="asyncOtaTask", espcpputils::CoreAffinity coreAffinity=espcpputils::CoreAffinity::Core1);
EspAsyncOta(const char *taskName="asyncOtaTask", uint32_t stackSize=2048, espcpputils::CoreAffinity coreAffinity=espcpputils::CoreAffinity::Core1);
~EspAsyncOta();
tl::expected<void, std::string> startTask();
@@ -48,6 +48,7 @@ private:
void otaTask();
const char * const m_taskName;
const uint32_t m_stackSize;
const espcpputils::CoreAffinity m_coreAffinity;
int m_progress{};