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:
parent
aa682bcc6e
commit
9d46ad259c
@ -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, "");
|
||||
|
@ -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, "");
|
||||
|
Loading…
Reference in New Issue
Block a user