sidebar: display full signal when network strength is GREAT (#21259)

* full signal when network strength is GREAT

* apply review

* space
pull/21264/head
Dean Lee 4 years ago committed by GitHub
parent 6816b6d8f8
commit 648b60a381
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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) {

Loading…
Cancel
Save