Skip to content

Commit

Permalink
fix(core): Fix displayed batch number in prodtest.
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
andrewkozlik committed Jan 23, 2025
1 parent 69a61e9 commit 27ed1fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/embed/projects/prodtest/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ int main(void) {
draw_welcome_screen();

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) &&
sectrue == startswith(dom, MODEL_IDENTIFIER) && dom[31] == 0) {
gfx_offset_t pos;
Expand All @@ -1189,7 +1189,8 @@ int main(void) {
gfx_draw_qrcode(pos, 4, dom);

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();
}
Expand Down

0 comments on commit 27ed1fd

Please sign in to comment.