summaryrefslogtreecommitdiffstats
path: root/navigation
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2023-05-12 13:57:59 -0400
committerScott Murray <scott.murray@konsulko.com>2023-05-12 14:00:58 -0400
commit4e635f80863700f3a240742a55eb2396d98f286d (patch)
tree6e348459721a1b6c5f4f7814714be6c3bff12f51 /navigation
parent9a7e2c5420cae0669c149d5dddbcd99a8fac0038 (diff)
navigation: uppercase state in Navigation::broadcastStatus
The states for the Vehicle.Cabin.Infotainment.Navigation.State signal have been changed to uppercase values with the upgrade to VSS 3.1.1 to match upstream VSS signals. Uppercase the provided state name in Navigation::broadcastStatus to ensure clients respect this. Bug-AGL: SPEC-4761 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I2af108655470907c0c04ffafd7cd9375f30fc0fe
Diffstat (limited to 'navigation')
-rw-r--r--navigation/navigation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/navigation/navigation.cpp b/navigation/navigation.cpp
index e33772a..cb9f6cd 100644
--- a/navigation/navigation.cpp
+++ b/navigation/navigation.cpp
@@ -87,7 +87,9 @@ void Navigation::broadcastStatus(QString state)
if (!(m_vs && m_connected))
return;
- m_vs->set("Vehicle.Cabin.Infotainment.Navigation.State", state);
+ // The signal states have been changed to all uppercase to match
+ // VSS 3.x expectations, enforce that.
+ m_vs->set("Vehicle.Cabin.Infotainment.Navigation.State", state.toUpper());
}
void Navigation::onConnected()