From 5933dc10129cf96c328817be94cb815e45703f72 Mon Sep 17 00:00:00 2001 From: Leonard Gies Date: Fri, 1 Aug 2025 01:41:16 +0200 Subject: [PATCH] update brake pressure and LV status formatting --- TouchGFX/gui/src/containers/DriverViewStatusItem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TouchGFX/gui/src/containers/DriverViewStatusItem.cpp b/TouchGFX/gui/src/containers/DriverViewStatusItem.cpp index e4135dc..6e20306 100644 --- a/TouchGFX/gui/src/containers/DriverViewStatusItem.cpp +++ b/TouchGFX/gui/src/containers/DriverViewStatusItem.cpp @@ -67,7 +67,7 @@ void DriverViewStatusItem::update() { break; case DriverViewStatusType::LV: - Unicode::snprintf(valueBuffer, 8, "LV:%d%%", (int)(vehicle_state.lv_soc)); + Unicode::snprintf(valueBuffer, 8, "LV:%d", (int)(vehicle_state.lv_soc)); text.setWildcard(valueBuffer); if (vehicle_state.lv_soc < 20) { bg.setColor(COLOR_ERROR); @@ -104,7 +104,7 @@ void DriverViewStatusItem::update() { break; case DriverViewStatusType::BPF: { - float params[3] = {5.0, 1.0, vehicle_state.brake_pressure_f}; + float params[3] = {4, 1, vehicle_state.brake_pressure_f}; Unicode::snprintfFloats(valueBuffer, 10, "F:%*.*f", params); text.setWildcard(valueBuffer); bg.setColor(vehicle_state.brake_pressure_f >= 30 ? COLOR_BLUE : COLOR_OFF); @@ -112,7 +112,7 @@ void DriverViewStatusItem::update() { } case DriverViewStatusType::BPR: { - float params[3] = {5.0, 1.0, vehicle_state.brake_pressure_r}; + float params[3] = {4, 1, vehicle_state.brake_pressure_r}; Unicode::snprintfFloats(valueBuffer, 10, "R:%*.*f", params); text.setWildcard(valueBuffer); bg.setColor(vehicle_state.brake_pressure_r >= 30 ? COLOR_BLUE : COLOR_OFF);