mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 02:52:04 +08:00
sidebar: only show gps indicator while onroad
old-commit-hash: 7211a4f6cca4373e59d1234ca4aa68a255596617
This commit is contained in:
@@ -85,7 +85,7 @@ void Sidebar::updateState(const UIState &s) {
|
||||
if (s.scene.pandaType == cereal::PandaState::PandaType::UNKNOWN) {
|
||||
pandaStatus = danger_color;
|
||||
pandaStr = "NO\nPANDA";
|
||||
} else if (!sm["liveLocationKalman"].getLiveLocationKalman().getGpsOK()) {
|
||||
} else if (s.scene.started && !sm["liveLocationKalman"].getLiveLocationKalman().getGpsOK()) {
|
||||
pandaStatus = warning_color;
|
||||
pandaStr = "GPS\nSEARCHING";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user