parent
a4968b5029
commit
6a92529272
45 changed files with 865 additions and 101 deletions
|
|
@ -12,8 +12,9 @@ void NrfLogger::Init() {
|
|||
|
||||
NRF_LOG_DEFAULT_BACKENDS_INIT();
|
||||
|
||||
if (pdPASS != xTaskCreate(NrfLogger::Process, "LOGGER", 200, this, 0, &m_logger_thread))
|
||||
if (pdPASS != xTaskCreate(NrfLogger::Process, "LOGGER", 200, this, 0, &m_logger_thread)) {
|
||||
APP_ERROR_HANDLER(NRF_ERROR_NO_MEM);
|
||||
}
|
||||
}
|
||||
|
||||
void NrfLogger::Process(void*) {
|
||||
|
|
@ -21,7 +22,7 @@ void NrfLogger::Process(void*) {
|
|||
// Suppress endless loop diagnostic
|
||||
#pragma clang diagnostic push
|
||||
#pragma ide diagnostic ignored "EndlessLoop"
|
||||
while (1) {
|
||||
while (true) {
|
||||
NRF_LOG_FLUSH();
|
||||
vTaskDelay(100); // Not good for power consumption, it will wake up every 100ms...
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue