mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-19 11:02:02 +00:00
fix(prodtest): fix haptic test
[no changelog]
This commit is contained in:
parent
8fcf8b67a8
commit
d35f062866
@ -42,16 +42,15 @@ static void prodtest_haptic_test(cli_t* cli) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
haptic_play(HAPTIC_BUTTON_PRESS);
|
||||||
|
|
||||||
cli_trace(cli, "Running haptic feedback test for %d ms...", duration);
|
cli_trace(cli, "Running haptic feedback test for %d ms...", duration);
|
||||||
if (!haptic_test(duration)) {
|
if (!haptic_test(duration)) {
|
||||||
cli_error(cli, CLI_ERROR, "Haptic feedback test failed.");
|
cli_error(cli, CLI_ERROR, "Haptic feedback test failed.");
|
||||||
goto cleanup;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
cli_ok(cli, "");
|
cli_ok(cli, "");
|
||||||
|
|
||||||
cleanup:
|
|
||||||
haptic_deinit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
@ -57,8 +57,6 @@ static void prodtest_touch_version(cli_t* cli) {
|
|||||||
uint8_t version = touch_get_version();
|
uint8_t version = touch_get_version();
|
||||||
|
|
||||||
cli_ok(cli, "%d", version);
|
cli_ok(cli, "%d", version);
|
||||||
|
|
||||||
touch_deinit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool touch_click_timeout(cli_t* cli, uint32_t* event, uint32_t timeout) {
|
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();
|
gfx_clear();
|
||||||
display_refresh();
|
display_refresh();
|
||||||
}
|
}
|
||||||
@ -230,8 +226,6 @@ static void prodtest_touch_test_custom(cli_t* cli) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
touch_deinit();
|
|
||||||
|
|
||||||
gfx_clear();
|
gfx_clear();
|
||||||
display_refresh();
|
display_refresh();
|
||||||
}
|
}
|
||||||
@ -279,7 +273,6 @@ static void prodtest_touch_test_idle(cli_t* cli) {
|
|||||||
cli_ok(cli, "");
|
cli_ok(cli, "");
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
touch_deinit();
|
|
||||||
gfx_clear();
|
gfx_clear();
|
||||||
display_refresh();
|
display_refresh();
|
||||||
}
|
}
|
||||||
@ -365,8 +358,6 @@ static void prodtest_touch_test_sensitivity(cli_t* cli) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
touch_deinit();
|
|
||||||
|
|
||||||
gfx_clear();
|
gfx_clear();
|
||||||
display_refresh();
|
display_refresh();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user