Skip to content

Commit

Permalink
fix(prodtest): fix haptic test
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
cepetr committed Feb 7, 2025
1 parent 061e712 commit 34448a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
7 changes: 3 additions & 4 deletions core/embed/projects/prodtest/cmd/prodtest_haptic.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,15 @@ static void prodtest_haptic_test(cli_t* cli) {
return;
}

haptic_play(HAPTIC_BUTTON_PRESS);

cli_trace(cli, "Running haptic feedback test for %d ms...", duration);
if (!haptic_test(duration)) {
cli_error(cli, CLI_ERROR, "Haptic feedback test failed.");
goto cleanup;
return;
}

cli_ok(cli, "");

cleanup:
haptic_deinit();
}

// clang-format off
Expand Down
9 changes: 0 additions & 9 deletions core/embed/projects/prodtest/cmd/prodtest_touch.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ static void prodtest_touch_version(cli_t* cli) {
uint8_t version = touch_get_version();

cli_ok(cli, "%d", version);

touch_deinit();
}

static bool touch_click_timeout(cli_t* cli, uint32_t* event, uint32_t timeout) {
Expand Down Expand Up @@ -142,8 +140,6 @@ static void prodtest_touch_test(cli_t* cli) {
}
}

touch_deinit();

gfx_clear();
display_refresh();
}
Expand Down Expand Up @@ -230,8 +226,6 @@ static void prodtest_touch_test_custom(cli_t* cli) {
}
}

touch_deinit();

gfx_clear();
display_refresh();
}
Expand Down Expand Up @@ -279,7 +273,6 @@ static void prodtest_touch_test_idle(cli_t* cli) {
cli_ok(cli, "");

cleanup:
touch_deinit();
gfx_clear();
display_refresh();
}
Expand Down Expand Up @@ -365,8 +358,6 @@ static void prodtest_touch_test_sensitivity(cli_t* cli) {
}
}

touch_deinit();

gfx_clear();
display_refresh();
}
Expand Down

0 comments on commit 34448a8

Please sign in to comment.