From d028f34eaca5bf71d6a49479254e3461cbaa3e9d Mon Sep 17 00:00:00 2001 From: cepetr Date: Wed, 11 Oct 2023 13:10:01 +0200 Subject: [PATCH] fix(legacy/intermediate_fw): remove redundant display initialization [no changelog] --- legacy/intermediate_fw/trezor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/intermediate_fw/trezor.c b/legacy/intermediate_fw/trezor.c index 3f734bdac..8f0d9866c 100644 --- a/legacy/intermediate_fw/trezor.c +++ b/legacy/intermediate_fw/trezor.c @@ -107,7 +107,7 @@ int main(void) { setupApp(); __stack_chk_guard = random32(); // this supports compiler provided // unpredictable stack protection checks - oledInit(); + if (is_mode_unprivileged()) { layoutDialog(&bmp_icon_warning, NULL, NULL, NULL, "Cannot update", NULL, NULL, "Unprivileged mode", "Unsigned firmware", NULL);