Commit 99287c4c authored by Patrick José Pereira's avatar Patrick José Pereira

PlanManager: Simplifies if logic

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 57e0e1fc
......@@ -712,7 +712,7 @@ QString PlanManager::_ackTypeToString(AckType_t ackType)
QString PlanManager::_lastMissionReqestString(MAV_MISSION_RESULT result)
{
if (_lastMissionRequest != -1 && _lastMissionRequest >= 0 && _lastMissionRequest < _writeMissionItems.count()) {
if (_lastMissionRequest >= 0 && _lastMissionRequest < _writeMissionItems.count()) {
MissionItem* item = _writeMissionItems[_lastMissionRequest];
switch (result) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment