diff options
| author | JF <jf@codingfield.com> | 2020-07-02 19:38:52 (GMT) |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-07-02 19:38:52 (GMT) |
| commit | a83f067af9af82f034596f6f6154f4dccf598ace (patch) | |
| tree | b19b858f1b82a5eefe8f906f2d7cce253627ea77 /src/Logging | |
| parent | 89e7033830bd73a35f4bb2faf14ccf06f3785712 (diff) | |
Reduce RAM memory usage by tuning the stack of the stasks and the heap allocated for FreeRTOS.
Add Monitor to log the stack usage of each task.
Diffstat (limited to 'src/Logging')
| -rw-r--r-- | src/Logging/NrfLogger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Logging/NrfLogger.cpp b/src/Logging/NrfLogger.cpp index 1c47a10..7ccacc8 100644 --- a/src/Logging/NrfLogger.cpp +++ b/src/Logging/NrfLogger.cpp @@ -13,7 +13,7 @@ void NrfLogger::Init() { NRF_LOG_DEFAULT_BACKENDS_INIT(); - if (pdPASS != xTaskCreate(NrfLogger::Process, "LOGGER", 512, nullptr, 0, &m_logger_thread)) + if (pdPASS != xTaskCreate(NrfLogger::Process, "LOGGER", 200, this, 0, &m_logger_thread)) APP_ERROR_HANDLER(NRF_ERROR_NO_MEM); } |
