clang-tidy: enable hicpp-braces-around-statements and fix

This commit is contained in:
Daniel Agar
2019-10-27 19:33:10 -04:00
parent 744f06cc8f
commit a7f330075a
5 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -1152,7 +1152,7 @@ void Logger::run()
* And on linux this is quite accurate as well, but under NuttX it is not accurate,
* because usleep() has only a granularity of CONFIG_MSEC_PER_TICK (=1ms).
*/
while (px4_sem_wait(&timer_callback_data.semaphore) != 0);
while (px4_sem_wait(&timer_callback_data.semaphore) != 0) {}
}
}