From 189c5a83b2599dd843b06d2cccdc1f28a89d404f Mon Sep 17 00:00:00 2001 From: Avamander Date: Sun, 4 Oct 2020 16:24:52 +0300 Subject: [PATCH] Made sure to unsuppress the diagnostic check after the infinite loop declaration --- src/systemtask/SystemTask.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index 01942daf..3efe21b8 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -194,6 +194,8 @@ void SystemTask::Work() { if(!nrf_gpio_pin_read(pinButton)) watchdog.Kick(); } + // Clear diagnostic suppression + #pragma clang diagnostic pop } void SystemTask::OnButtonPushed() {