kopia lustrzana https://github.com/lora-aprs/LoRa_APRS_iGate
fixing cppcheck
rodzic
8cf0c67683
commit
54a1e5bac7
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue