diff --git a/src/ui/PrimaryFlightDisplay.cc b/src/ui/PrimaryFlightDisplay.cc index e0197b7bfc54edcb2ccee83befcba0d3fcecbf01..35063a38065519e3fb6f17b92fc0e236fee8e756 100644 --- a/src/ui/PrimaryFlightDisplay.cc +++ b/src/ui/PrimaryFlightDisplay.cc @@ -1037,8 +1037,7 @@ void PrimaryFlightDisplay::drawVelocityMeter( float markerTip = (tickmarkLeftMajor+tickmarkRight*2)/3; // Select between air and ground speed: - - float speed = (isAirplane() && isnan(airSpeed)) ? airSpeed : groundSpeed; + float speed = (isAirplane() && !isnan(airSpeed)) ? airSpeed : groundSpeed; float centerScaleSpeed = isnan(speed) ? 0 : speed; float start = centerScaleSpeed - AIRSPEED_LINEAR_SPAN/2;