From 4e635f80863700f3a240742a55eb2396d98f286d Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Fri, 12 May 2023 13:57:59 -0400 Subject: 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 Change-Id: I2af108655470907c0c04ffafd7cd9375f30fc0fe --- navigation/navigation.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- cgit 1.2.3-korg