From f0f2c0b53889fb5040e2c34b6623d4ba944e625d Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Tue, 25 May 2021 21:32:44 +0200 Subject: [PATCH] fixing cppcheck in timer --- lib/System/Timer.cpp | 2 ++ src/Task.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/System/Timer.cpp b/lib/System/Timer.cpp index ebd17f6..4fb9e9f 100644 --- a/lib/System/Timer.cpp +++ b/lib/System/Timer.cpp @@ -13,10 +13,12 @@ uint32_t Timer::getTriggerTimeInSec() const { return (_nextTimeout - millis()) / 1000; } +// cppcheck-suppress unusedFunction bool Timer::isActive() const { return _nextTimeout != 0; } +// cppcheck-suppress unusedFunction void Timer::reset() { _nextTimeout = 0; } diff --git a/src/Task.h b/src/Task.h index b9a1f12..4c8163b 100644 --- a/src/Task.h +++ b/src/Task.h @@ -14,8 +14,6 @@ enum TaskNames TaskSize, }; -// char const * const getTaskName(TaskNames task); - #define TASK_APRS_IS "AprsIsTask" #define TASK_ETH "EthTask" #define TASK_FTP "FTPTask"