diff --git a/core/.changelog.d/1658.fixed b/core/.changelog.d/1658.fixed new file mode 100644 index 000000000..36bad816a --- /dev/null +++ b/core/.changelog.d/1658.fixed @@ -0,0 +1 @@ +Fix red screen on shutdown. diff --git a/core/embed/trezorhal/common.c b/core/embed/trezorhal/common.c index a98874f61..de6ac6f28 100644 --- a/core/embed/trezorhal/common.c +++ b/core/embed/trezorhal/common.c @@ -29,9 +29,6 @@ #include "stm32f4xx_ll_utils.h" -// from util.s -extern void shutdown_privileged(void); - #define COLOR_FATAL_ERROR RGB16(0x7F, 0x00, 0x00) // from util.s @@ -71,7 +68,7 @@ __fatal_error(const char *expr, const char *msg, const char *file, int line, rev[4]); #endif display_printf("\nPlease contact Trezor support.\n"); - shutdown_privileged(); + shutdown(); for (;;) ; } @@ -120,7 +117,7 @@ error_shutdown(const char *line1, const char *line2, const char *line3, display_printf("\nPlease unplug the device.\n"); #endif display_backlight(255); - shutdown_privileged(); + shutdown(); for (;;) ; }