Commit e55bfe61 authored by Don Gagne's avatar Don Gagne

Fix skip first param bug

parent ad1d2ce8
...@@ -514,7 +514,7 @@ void MockLink::_handleParamRequestList(const mavlink_message_t& msg) ...@@ -514,7 +514,7 @@ void MockLink::_handleParamRequestList(const mavlink_message_t& msg)
foreach(QString paramName, _mapParamName2Value[componentId].keys()) { foreach(QString paramName, _mapParamName2Value[componentId].keys()) {
if (skipParam) { if (skipParam) {
// We've already sent the first param // We've already sent the first param
skipParam = true; skipParam = false;
paramIndex++; paramIndex++;
} else { } else {
char paramId[MAVLINK_MSG_ID_PARAM_VALUE_LEN]; char paramId[MAVLINK_MSG_ID_PARAM_VALUE_LEN];
......
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