We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1e41be commit bca727aCopy full SHA for bca727a
selfdrive/ui/layouts/sidebar.py
@@ -116,7 +116,7 @@ def _update_state(self):
116
def _update_network_status(self, device_state):
117
self._net_type = NETWORK_TYPES.get(device_state.networkType.raw, tr_noop("Unknown"))
118
strength = device_state.networkStrength
119
- self._net_strength = max(0, min(5, strength.raw + 1)) if strength > 0 else 0
+ self._net_strength = max(0, min(5, strength.raw + 1)) if strength.raw > 0 else 0
120
121
def _update_temperature_status(self, device_state):
122
thermal_status = device_state.thermalStatus
0 commit comments