Skip to content

Commit

Permalink
Remove warn text too from batt (#2377)
Browse files Browse the repository at this point in the history
  • Loading branch information
htotoo authored Nov 20, 2024
1 parent e88e0b5 commit 07cae4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions firmware/application/apps/ui_battinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand All @@ -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;
Expand Down Expand Up @@ -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&) {
Expand Down
4 changes: 2 additions & 2 deletions firmware/application/apps/ui_battinfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 07cae4a

Please sign in to comment.