From 1b51d71ef40afc82e6d1a195699a82f8f7858867 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Tue, 15 Jun 2021 05:54:38 +0800 Subject: [PATCH] sidebar: display full signal when network strength is GREAT (#21259) * full signal when network strength is GREAT * apply review * space old-commit-hash: 648b60a381e08597f2a7c2b05142070b947fa128 --- selfdrive/ui/qt/sidebar.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/sidebar.cc b/selfdrive/ui/qt/sidebar.cc index 4499cc3da9..48f6f1e07a 100644 --- a/selfdrive/ui/qt/sidebar.cc +++ b/selfdrive/ui/qt/sidebar.cc @@ -55,7 +55,8 @@ void Sidebar::updateState(const UIState &s) { auto deviceState = sm["deviceState"].getDeviceState(); setProperty("netType", network_type[deviceState.getNetworkType()]); - setProperty("netStrength", (int)deviceState.getNetworkStrength()); + int strength = (int)deviceState.getNetworkStrength(); + setProperty("netStrength", strength > 0 ? strength + 1 : 0); auto last_ping = deviceState.getLastAthenaPingTime(); if (last_ping == 0) {