mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-08-02 11:58:32 +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,
|
(int)report.die_temp, (int)abs(report.die_temp * 1000) % 1000,
|
||||||
report.ibat_meas_status, report.buck_status, state);
|
report.ibat_meas_status, report.buck_status, state);
|
||||||
|
|
||||||
do {
|
if (count > 0) {
|
||||||
if (cli_aborted(cli)) {
|
do {
|
||||||
return;
|
if (cli_aborted(cli)) {
|
||||||
}
|
return;
|
||||||
} while (!ticks_expired(ticks + period));
|
}
|
||||||
|
} while (!ticks_expired(ticks + period));
|
||||||
ticks += period;
|
ticks += period;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cli_ok(cli, "");
|
cli_ok(cli, "");
|
||||||
|
@ -151,13 +151,14 @@ static void prodtest_wpc_report(cli_t* cli) {
|
|||||||
report.opfreq, (int)report.ntc,
|
report.opfreq, (int)report.ntc,
|
||||||
(int)abs(report.ntc * 1000) % 1000);
|
(int)abs(report.ntc * 1000) % 1000);
|
||||||
|
|
||||||
do {
|
if (count > 0) {
|
||||||
if (cli_aborted(cli)) {
|
do {
|
||||||
return;
|
if (cli_aborted(cli)) {
|
||||||
}
|
return;
|
||||||
} while (!ticks_expired(ticks + period));
|
}
|
||||||
|
} while (!ticks_expired(ticks + period));
|
||||||
ticks += period;
|
ticks += period;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cli_ok(cli, "");
|
cli_ok(cli, "");
|
||||||
|
Loading…
Reference in New Issue
Block a user