mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-07 17:26:56 +08:00
sidebar: display full signal when network strength is GREAT (#21259)
* full signal when network strength is GREAT * apply review * space
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user