Skip to content

Commit 04ac000

Browse files
committed
fw/apps/prf/mfg_menu: move aging test to main menu
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
1 parent 7c25c29 commit 04ac000

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/fw/apps/prf_apps/mfg_menu_app.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,13 @@ static void prv_select_program_color(int index, void *context) {
172172
launcher_task_add_callback(prv_launch_app_cb, (void*) mfg_program_color_app_get_info());
173173
}
174174

175-
static void prv_extras_select_discharge(int index, void *context) {
176-
// Launch app and mark to return to extras menu when it exits
177-
launcher_task_add_callback(prv_launch_app_from_extras_cb, (void*) mfg_discharge_app_get_info());
175+
static void prv_select_test_aging(int index, void *context) {
176+
launcher_task_add_callback(prv_launch_app_cb, (void*) mfg_test_aging_app_get_info());
178177
}
179178

180-
static void prv_extras_select_test_aging(int index, void *context) {
179+
static void prv_extras_select_discharge(int index, void *context) {
181180
// Launch app and mark to return to extras menu when it exits
182-
launcher_task_add_callback(prv_launch_app_from_extras_cb, (void*) mfg_test_aging_app_get_info());
181+
launcher_task_add_callback(prv_launch_app_from_extras_cb, (void*) mfg_discharge_app_get_info());
183182
}
184183

185184
#ifdef MANUFACTURING_FW
@@ -228,7 +227,6 @@ static void prv_extras_window_load(Window *window) {
228227
{ .title = "Test HRM", .callback = prv_select_hrm },
229228
#endif
230229
{ .title = "Test Discharge", .callback = prv_extras_select_discharge },
231-
{ .title = "Test Aging", .callback = prv_extras_select_test_aging },
232230
#ifdef MANUFACTURING_FW
233231
{ .title = "Load PRF", .callback = prv_extras_select_load_prf },
234232
#endif
@@ -358,6 +356,7 @@ static size_t prv_create_menu_items(SimpleMenuItem** out_menu_items) {
358356
{ .title = "Test HRM CTR/L", .callback = prv_select_hrm_ctr_leakage_obelix },
359357
#endif
360358
{ .title = "Program Color", .callback = prv_select_program_color },
359+
{ .title = "Test Aging", .callback = prv_select_test_aging },
361360
{ .title = "Test Charge", .callback = prv_select_charge },
362361
{ .title = "Reset", .callback = prv_select_reset },
363362
{ .title = "Shutdown", .callback = prv_select_shutdown },

0 commit comments

Comments
 (0)