From 8602fd21e145ba22e0f796c5f7a5069ec0e5a967 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 15 May 2016 15:47:02 +0200 Subject: [PATCH] RSSI indicator: Grey it out if no actual RSSI is available --- src/ui/toolbar/MainToolBarIndicators.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/toolbar/MainToolBarIndicators.qml b/src/ui/toolbar/MainToolBarIndicators.qml index cb3153309..7ab358f57 100644 --- a/src/ui/toolbar/MainToolBarIndicators.qml +++ b/src/ui/toolbar/MainToolBarIndicators.qml @@ -213,13 +213,13 @@ Row { sourceSize.height: height source: "/qmlimages/RC.svg" fillMode: Image.PreserveAspectFit - opacity: activeVehicle ? (activeVehicle.rcRSSI < 1 ? 0.5 : 1) : 0.5 + opacity: activeVehicle ? (((activeVehicle.rcRSSI < 1) || (activeVehicle.rcRSSI > 100)) ? 0.5 : 1) : 0.5 color: qgcPal.buttonText anchors.verticalCenter: parent.verticalCenter } SignalStrength { size: mainWindow.tbCellHeight * 0.5 - percent: activeVehicle ? activeVehicle.rcRSSI : 0 + percent: activeVehicle ? ((activeVehicle.rcRSSI > 100) ? 0 : activeVehicle.rcRSSI) : 0 anchors.verticalCenter: parent.verticalCenter } } -- 2.22.0