1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-15 23:05:45 +00:00

fix(core/prodtest): remove final wait from report commands

[no changelog]
This commit is contained in:
tychovrahe 2025-03-21 14:58:47 +01:00 committed by TychoVrahe
parent aa682bcc6e
commit 9d46ad259c
2 changed files with 16 additions and 14 deletions

View File

@ -187,13 +187,14 @@ static void prodtest_pmic_report(cli_t* cli) {
(int)report.die_temp, (int)abs(report.die_temp * 1000) % 1000,
report.ibat_meas_status, report.buck_status, state);
do {
if (cli_aborted(cli)) {
return;
}
} while (!ticks_expired(ticks + period));
ticks += period;
if (count > 0) {
do {
if (cli_aborted(cli)) {
return;
}
} while (!ticks_expired(ticks + period));
ticks += period;
}
}
cli_ok(cli, "");

View File

@ -151,13 +151,14 @@ static void prodtest_wpc_report(cli_t* cli) {
report.opfreq, (int)report.ntc,
(int)abs(report.ntc * 1000) % 1000);
do {
if (cli_aborted(cli)) {
return;
}
} while (!ticks_expired(ticks + period));
ticks += period;
if (count > 0) {
do {
if (cli_aborted(cli)) {
return;
}
} while (!ticks_expired(ticks + period));
ticks += period;
}
}
cli_ok(cli, "");