From 07cae4a298b50a74f56b97390516d8c78f47c065 Mon Sep 17 00:00:00 2001 From: Totoo Date: Wed, 20 Nov 2024 15:02:02 +0100 Subject: [PATCH] Remove warn text too from batt (#2377) --- firmware/application/apps/ui_battinfo.cpp | 10 +++++----- firmware/application/apps/ui_battinfo.hpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/firmware/application/apps/ui_battinfo.cpp b/firmware/application/apps/ui_battinfo.cpp index cf33d563..bb35fc22 100644 --- a/firmware/application/apps/ui_battinfo.cpp +++ b/firmware/application/apps/ui_battinfo.cpp @@ -53,7 +53,7 @@ void BattinfoView::update_result() { // text_cycles.set("-"); text_ttef.set("-"); text_method.set("-"); - text_warn.set(""); + // text_warn.set(""); return; } bool uichg = false; @@ -98,9 +98,9 @@ void BattinfoView::update_result() { text_charge.hidden(true); // text_cycles.hidden(true); text_ttef.hidden(true); - text_warn.set(""); + // text_warn.set(""); } - if ((valid_mask & battery::BatteryManagement::BATT_VALID_CYCLES) == battery::BatteryManagement::BATT_VALID_CYCLES) { + /* if ((valid_mask & battery::BatteryManagement::BATT_VALID_CYCLES) == battery::BatteryManagement::BATT_VALID_CYCLES) { // text_cycles.hidden(false); uint16_t cycles = 0; // battery::BatteryManagement::get_cycles(); if (cycles < 2) @@ -111,7 +111,7 @@ void BattinfoView::update_result() { } else { // text_cycles.hidden(true); text_warn.set(""); - } + } */ if ((valid_mask & battery::BatteryManagement::BATT_VALID_TTEF) == battery::BatteryManagement::BATT_VALID_TTEF) { text_ttef.hidden(false); float ttef = 0; @@ -161,7 +161,7 @@ BattinfoView::BattinfoView(NavigationView& nav) &button_mode, &button_exit, // &text_cycles, - &text_warn, + // &text_warn, &text_ttef}); button_exit.on_select = [this, &nav](Button&) { diff --git a/firmware/application/apps/ui_battinfo.hpp b/firmware/application/apps/ui_battinfo.hpp index f1f90add..45960c2e 100644 --- a/firmware/application/apps/ui_battinfo.hpp +++ b/firmware/application/apps/ui_battinfo.hpp @@ -87,11 +87,11 @@ class BattinfoView : public View { "-"}; /* Text text_cycles{ {13 * 8, 7 * 16, 10 * 16, 16}, - "-"}; */ + "-"}; Text text_warn{ {1 * 8, 8 * 16, 30 * 8, 2 * 16}, - ""}; + ""}; */ Button button_mode{ {2 * 8, 11 * 16 + 5, 5 * 16, 32},