1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-14 16:42:02 +00:00

fix(prodtest): fix haptic test

[no changelog]
This commit is contained in:
cepetr 2025-02-07 15:43:29 +01:00 committed by cepetr
parent 8fcf8b67a8
commit d35f062866
2 changed files with 3 additions and 13 deletions

View File

@ -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

View File

@ -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) {
@ -142,8 +140,6 @@ static void prodtest_touch_test(cli_t* cli) {
}
}
touch_deinit();
gfx_clear();
display_refresh();
}
@ -230,8 +226,6 @@ static void prodtest_touch_test_custom(cli_t* cli) {
}
}
touch_deinit();
gfx_clear();
display_refresh();
}
@ -279,7 +273,6 @@ static void prodtest_touch_test_idle(cli_t* cli) {
cli_ok(cli, "");
cleanup:
touch_deinit();
gfx_clear();
display_refresh();
}
@ -365,8 +358,6 @@ static void prodtest_touch_test_sensitivity(cli_t* cli) {
}
}
touch_deinit();
gfx_clear();
display_refresh();
}