From 03464bea4d5dbac4279f1c195b3d535062e7a21b Mon Sep 17 00:00:00 2001 From: cepetr Date: Wed, 4 Oct 2023 17:32:28 +0200 Subject: [PATCH] feat(prodtest): make prodtest welcome screen white (T2B1 only) [no changelog] --- core/embed/prodtest/main.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/core/embed/prodtest/main.c b/core/embed/prodtest/main.c index 98d3f028ad..eb2c160027 100644 --- a/core/embed/prodtest/main.c +++ b/core/embed/prodtest/main.c @@ -148,6 +148,15 @@ static void draw_border(int width, int padding) { display_refresh(); } +static void draw_welcome_screen(void) { +#if TREZOR_MODEL_R + display_bar(0, 0, DISPLAY_RESX, DISPLAY_RESY, 0xFFFF); + display_refresh(); +#else + draw_border(1, 3); +#endif +} + static void test_border(void) { draw_border(2, 0); vcp_println("OK"); @@ -562,7 +571,7 @@ int main(void) { drop_privileges(); display_clear(); - draw_border(1, 3); + draw_welcome_screen(); char dom[32]; // format: TREZOR2-YYMMDD