diff options
author | Scott Murray <scott.murray@konsulko.com> | 2023-05-12 13:57:59 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2023-05-29 12:30:58 +0000 |
commit | 9e65902a635417b79fe2c1b508e6816b4ffab49d (patch) | |
tree | d964564da271a741ef5129869ee5e71cdf8ae055 /navigation | |
parent | 3022561d398bba5e367c8402d196830f526f8da7 (diff) |
navigation: uppercase state in Navigation::broadcastStatusoctopus
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
(cherry picked from commit 4e635f80863700f3a240742a55eb2396d98f286d)
Diffstat (limited to 'navigation')
-rw-r--r-- | navigation/navigation.cpp | 4 |
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() |