Minor formatting, diagnostic and documentation changes

This commit is contained in:
Avamander
2020-10-04 15:08:48 +03:00
parent bb72712d37
commit f68c7b65b3
5 changed files with 31 additions and 11 deletions

View File

@@ -19,10 +19,15 @@ 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 (1) {
NRF_LOG_FLUSH();
vTaskDelay(100); // Not good for power consumption, it will wake up every 100ms...
}
// Clear diagnostic suppression
#pragma clang diagnostic pop
}
void NrfLogger::Resume() {