Skip to content

Commit

Permalink
Removed redundant comments from NrfLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
Avamander committed Jun 12, 2021
1 parent c8100dc commit 56bb44f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/logging/NrfLogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ void NrfLogger::Init() {

void NrfLogger::Process(void*) {
NRF_LOG_INFO("Logger task started!");
// Suppress endless loop diagnostic

#pragma clang diagnostic push
#pragma ide diagnostic ignored "EndlessLoop"
while (true) {
NRF_LOG_FLUSH();
vTaskDelay(100); // Not good for power consumption, it will wake up every 100ms...
}
// Clear diagnostic suppression
#pragma clang diagnostic pop
}

Expand Down

0 comments on commit 56bb44f

Please sign in to comment.