From 86629c8b2017506f95304e4c2ce3f5e78f3496ec Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Thu, 10 Sep 2015 19:10:40 -0700 Subject: [PATCH] Fix compiler warning --- src/MissionManager/MissionManager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MissionManager/MissionManager.cc b/src/MissionManager/MissionManager.cc index 37a466b13..a282e59b9 100644 --- a/src/MissionManager/MissionManager.cc +++ b/src/MissionManager/MissionManager.cc @@ -280,7 +280,7 @@ void MissionManager::_handleMissionRequest(const mavlink_message_t& message) qCDebug(MissionManagerLog) << "_handleMissionRequest sequenceNumber:" << missionRequest.seq; - if (missionRequest.seq < 0 || missionRequest.seq >= _missionItems.count()) { + if (missionRequest.seq >= _missionItems.count()) { qCDebug(MissionManagerLog) << "_handleMissionRequest invalid sequence number requested:count" << missionRequest.seq << _missionItems.count(); return; } -- 2.22.0