Skip to content

Commit 6f68ea3

Browse files
committed
fw/apps/prf/mfg: build/logic fixes
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
1 parent 76fca45 commit 6f68ea3

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/fw/apps/prf_apps/mfg_charge_app.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ static void prv_handle_second_tick(struct tm *tick_time, TimeUnits units_changed
134134
battery_set_charge_enable(false);
135135
break;
136136
}
137+
} else {
138+
data->batt_temp_fail_count = 0;
137139
}
138140

139141
if (charge_state.charge_percent > SLOW_THRESHOLD_PERCENTAGE && data->fastcharge_enabled) {

src/fw/apps/prf_apps/mfg_menu_app.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* SPDX-FileCopyrightText: 2024 Google LLC */
22
/* SPDX-License-Identifier: Apache-2.0 */
33

4+
#include <stdio.h>
5+
46
#include "applib/app.h"
57
#include "applib/graphics/bitblt.h"
68
#include "applib/ui/ui.h"

src/fw/apps/prf_apps/mfg_test_aging_app.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ static void prv_handle_second_tick(struct tm *tick_time, TimeUnits units_changed
429429
prv_update_display(data);
430430
return;
431431
}
432+
} else {
433+
data->fail_cnt = 0U;
432434
}
433435
}
434436
}

0 commit comments

Comments
 (0)