mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-28 10:52:32 +00:00
fix(core): Fix displayed batch number in prodtest.
[no changelog]
This commit is contained in:
parent
69a61e98e0
commit
27ed1fd49e
@ -1180,7 +1180,7 @@ int main(void) {
|
|||||||
draw_welcome_screen();
|
draw_welcome_screen();
|
||||||
|
|
||||||
char dom[32];
|
char dom[32];
|
||||||
// format: {MODEL_IDENTIFIER}-YYMMDD
|
// format: {MODEL_IDENTIFIER}YYMMDD
|
||||||
if (sectrue == flash_otp_read(FLASH_OTP_BLOCK_BATCH, 0, (uint8_t *)dom, 32) &&
|
if (sectrue == flash_otp_read(FLASH_OTP_BLOCK_BATCH, 0, (uint8_t *)dom, 32) &&
|
||||||
sectrue == startswith(dom, MODEL_IDENTIFIER) && dom[31] == 0) {
|
sectrue == startswith(dom, MODEL_IDENTIFIER) && dom[31] == 0) {
|
||||||
gfx_offset_t pos;
|
gfx_offset_t pos;
|
||||||
@ -1189,7 +1189,8 @@ int main(void) {
|
|||||||
gfx_draw_qrcode(pos, 4, dom);
|
gfx_draw_qrcode(pos, 4, dom);
|
||||||
|
|
||||||
pos = gfx_offset(DISPLAY_RESX / 2, DISPLAY_RESY - 30);
|
pos = gfx_offset(DISPLAY_RESX / 2, DISPLAY_RESY - 30);
|
||||||
gfx_draw_text(pos, dom + 8, -1, &bold, GFX_ALIGN_CENTER);
|
gfx_draw_text(pos, dom + sizeof(MODEL_IDENTIFIER) - 1, -1, &bold,
|
||||||
|
GFX_ALIGN_CENTER);
|
||||||
|
|
||||||
display_refresh();
|
display_refresh();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user