Commit 97ee6ce7 authored by Don Gagne's avatar Don Gagne

Fix incorrect channel count

parent ed5015eb
......@@ -375,7 +375,7 @@ void Vehicle::_handleRCChannelsRaw(mavlink_message_t& message)
if (channelValue == UINT16_MAX) {
pwmValues[i] = -1;
} else {
channelCount = i;
channelCount = i + 1;
pwmValues[i] = channelValue;
}
}
......
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