Commit 7a463f4f authored by Bryant's avatar Bryant

Fixed crash in QGCRemoteControlView.cc when a UAV is connected, but not...

Fixed crash in QGCRemoteControlView.cc when a UAV is connected, but not RADIO_CONTROL packet has been received.
parent 4019d95a
...@@ -200,7 +200,7 @@ void QGCRemoteControlView::redraw() ...@@ -200,7 +200,7 @@ void QGCRemoteControlView::redraw()
if(isVisible() && updated) if(isVisible() && updated)
{ {
// Update percent bars and raw labels // Update percent bars and raw labels
for(int i = 0; (i < progressBars.count()) && (i < rawLabels.count()) && (i < normalized.count()); i++) for(int i = 0; (i < progressBars.count()) && (i < rawLabels.count()) && (i < normalized.count()) && (i < raw.count()); i++)
{ {
rawLabels.at(i)->setText(QString("%1 us").arg(raw.at(i), 4, 10, QChar('0'))); rawLabels.at(i)->setText(QString("%1 us").arg(raw.at(i), 4, 10, QChar('0')));
int vv = normalized.at(i)*100.0f; int vv = normalized.at(i)*100.0f;
......
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