mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2026-04-20 22:05:09 +00:00
fixing cppcheck
This commit is contained in:
parent
8cf0c67683
commit
54a1e5bac7
1 changed files with 3 additions and 7 deletions
|
|
@ -90,12 +90,8 @@ void StatusFrame::drawStatusPage(Bitmap & bitmap)
|
|||
|
||||
bool StatusFrame::isPrio() const
|
||||
{
|
||||
for(std::shared_ptr<Task> task : _tasks)
|
||||
return std::any_of(_tasks.begin(), _tasks.end(), [](std::shared_ptr<Task> task)
|
||||
{
|
||||
if(task->getState() != Okay)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return task->getState() != Okay;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue