diff --git a/platformio.ini b/platformio.ini index bdd9470..a27d9ed 100644 --- a/platformio.ini +++ b/platformio.ini @@ -28,7 +28,7 @@ lib_deps = shaggydog/OneButton @ 1.5.0 jgromes/RadioLib @ 6.1.0 check_tool = cppcheck -check_flags = cppcheck: --std=c++20 --suppress=*:*.pio\* --inline-suppr --suppress=unusedFunction --suppress=shadowFunction:*TimeLib.cpp --suppress=unreadVariable:*TimeLib.cpp +check_flags = cppcheck: --std=c++20 --suppress=*:*.pio\* --inline-suppr --suppress=unusedFunction --suppress=shadowFunction:*TimeLib.cpp --suppress=unreadVariable:*TimeLib.cpp --suppress=badBitmaskCheck:*project_configuration.cpp check_skip_packages = yes test_build_src = yes # activate for OTA Update, use the CALLSIGN from is-cfg.json as upload_port: diff --git a/src/System/TaskManager.cpp b/src/System/TaskManager.cpp index cb01b88..16a819f 100644 --- a/src/System/TaskManager.cpp +++ b/src/System/TaskManager.cpp @@ -51,7 +51,7 @@ bool TaskManager::loop(System &system) { // cppcheck-suppress unusedFunction void StatusFrame::drawStatusPage(Bitmap &bitmap) { int y = 0; - for (Task *task : _tasks) { + for (Task const *const task : _tasks) { int x = bitmap.drawString(0, y, (task->getName()).substring(0, task->getName().indexOf("Task"))); x = bitmap.drawString(x, y, ": "); if (task->getStateInfo() == "") {