mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 11:28:14 +00:00
protect: Update protectPinUiCallback() to show arbitrary message.
This commit is contained in:
parent
806f943116
commit
ae0395f0f4
@ -147,7 +147,7 @@ const char *requestPin(PinMatrixRequestType type, const char *text)
|
||||
}
|
||||
}
|
||||
|
||||
secbool protectPinUiCallback(uint32_t wait, uint32_t progress)
|
||||
secbool protectPinUiCallback(uint32_t wait, uint32_t progress, const char* message)
|
||||
{
|
||||
// Convert wait to secstr string.
|
||||
char secstrbuf[] = _("________0 seconds");
|
||||
@ -163,7 +163,7 @@ secbool protectPinUiCallback(uint32_t wait, uint32_t progress)
|
||||
secstrbuf[16] = 0;
|
||||
}
|
||||
oledClear();
|
||||
oledDrawStringCenter(OLED_WIDTH / 2, 0 * 9, _("Verifying PIN"), FONT_STANDARD);
|
||||
oledDrawStringCenter(OLED_WIDTH / 2, 0 * 9, message, FONT_STANDARD);
|
||||
oledDrawStringCenter(OLED_WIDTH / 2, 2 * 9, _("Please wait"), FONT_STANDARD);
|
||||
oledDrawStringCenter(OLED_WIDTH / 2, 3 * 9, secstr, FONT_STANDARD);
|
||||
oledDrawStringCenter(OLED_WIDTH / 2, 4 * 9, _("to continue ..."), FONT_STANDARD);
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include "secbool.h"
|
||||
|
||||
bool protectButton(ButtonRequestType type, bool confirm_only);
|
||||
secbool protectPinUiCallback(uint32_t wait, uint32_t progress);
|
||||
secbool protectPinUiCallback(uint32_t wait, uint32_t progress, const char* message);
|
||||
bool protectPin(bool use_cached);
|
||||
bool protectChangePin(bool removal);
|
||||
bool protectPassphrase(void);
|
||||
|
2
vendor/trezor-storage
vendored
2
vendor/trezor-storage
vendored
@ -1 +1 @@
|
||||
Subproject commit 24df1ca2b768d62162e9ab95602698d26c371746
|
||||
Subproject commit 0e897f673a2150607bae553e21604b253352644e
|
Loading…
Reference in New Issue
Block a user