From ca9db6125a2a2a52ef2b5ba8a0f6a9f47fa84e52 Mon Sep 17 00:00:00 2001 From: Benoit d'Oncieu Date: Tue, 7 Nov 2023 13:55:53 +0100 Subject: [PATCH] fix: get the vehicle name from the vehicle_state --- source/MainView.mc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/MainView.mc b/source/MainView.mc index 6808383..12ca4a5 100644 --- a/source/MainView.mc +++ b/source/MainView.mc @@ -110,7 +110,7 @@ class MainView extends Ui.View { if (_data._vehicle_data != null) { // Retrieve and display the vehicle name var name_drawable = View.findDrawableById("name"); - var vehicle_name = _data._vehicle_data.get("display_name"); + var vehicle_name = _data._vehicle_data.get("vehicle_state").get("vehicle_name"); Application.getApp().setProperty("vehicle_name", vehicle_name); name_drawable.setText(vehicle_name); name_drawable.draw(dc);