kopia lustrzana https://github.com/lora-aprs/LoRa_APRS_iGate
fix cppcheck
rodzic
f095f70a2b
commit
fbb2071045
|
@ -28,7 +28,7 @@ lib_deps =
|
||||||
shaggydog/OneButton @ 1.5.0
|
shaggydog/OneButton @ 1.5.0
|
||||||
jgromes/RadioLib @ 6.1.0
|
jgromes/RadioLib @ 6.1.0
|
||||||
check_tool = cppcheck
|
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
|
check_skip_packages = yes
|
||||||
test_build_src = yes
|
test_build_src = yes
|
||||||
# activate for OTA Update, use the CALLSIGN from is-cfg.json as upload_port:
|
# activate for OTA Update, use the CALLSIGN from is-cfg.json as upload_port:
|
||||||
|
|
|
@ -51,7 +51,7 @@ bool TaskManager::loop(System &system) {
|
||||||
// cppcheck-suppress unusedFunction
|
// cppcheck-suppress unusedFunction
|
||||||
void StatusFrame::drawStatusPage(Bitmap &bitmap) {
|
void StatusFrame::drawStatusPage(Bitmap &bitmap) {
|
||||||
int y = 0;
|
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")));
|
int x = bitmap.drawString(0, y, (task->getName()).substring(0, task->getName().indexOf("Task")));
|
||||||
x = bitmap.drawString(x, y, ": ");
|
x = bitmap.drawString(x, y, ": ");
|
||||||
if (task->getStateInfo() == "") {
|
if (task->getStateInfo() == "") {
|
||||||
|
|
Ładowanie…
Reference in New Issue