mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-22 06:28:13 +00:00
fix(core/bootloader): fix overflow wipe progress calculation
[no changelog]
This commit is contained in:
parent
1223ecc32b
commit
a2596ef28d
@ -147,7 +147,7 @@ confirm_result_t ui_screen_wipe_confirm(void) { return screen_wipe_confirm(); }
|
||||
void ui_screen_wipe(void) { screen_wipe_progress(0, true); }
|
||||
|
||||
void ui_screen_wipe_progress(int pos, int len) {
|
||||
screen_wipe_progress(1000 * pos / len, false);
|
||||
screen_wipe_progress((int16_t)(1000 * (int64_t)pos / len), false);
|
||||
}
|
||||
|
||||
// done UI
|
||||
|
Loading…
Reference in New Issue
Block a user