Browse Source

Fixed crash in QGCRemoteControlView.cc when a UAV is connected, but not RADIO_CONTROL packet has been received.

QGC4.4
Bryant 12 years ago
parent
commit
7a463f4fea
  1. 2
      src/ui/QGCRemoteControlView.cc

2
src/ui/QGCRemoteControlView.cc

@ -200,7 +200,7 @@ void QGCRemoteControlView::redraw() @@ -200,7 +200,7 @@ void QGCRemoteControlView::redraw()
if(isVisible() && updated)
{
// 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')));
int vv = normalized.at(i)*100.0f;

Loading…
Cancel
Save