mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-25 23:01:02 +00:00
fix(core): use unprivileged shutdown where needed
This commit is contained in:
parent
5984fd6ad7
commit
b8b0ae09d9
1
core/.changelog.d/1658.fixed
Normal file
1
core/.changelog.d/1658.fixed
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix red screen on shutdown.
|
@ -29,9 +29,6 @@
|
|||||||
|
|
||||||
#include "stm32f4xx_ll_utils.h"
|
#include "stm32f4xx_ll_utils.h"
|
||||||
|
|
||||||
// from util.s
|
|
||||||
extern void shutdown_privileged(void);
|
|
||||||
|
|
||||||
#define COLOR_FATAL_ERROR RGB16(0x7F, 0x00, 0x00)
|
#define COLOR_FATAL_ERROR RGB16(0x7F, 0x00, 0x00)
|
||||||
|
|
||||||
// from util.s
|
// from util.s
|
||||||
@ -71,7 +68,7 @@ __fatal_error(const char *expr, const char *msg, const char *file, int line,
|
|||||||
rev[4]);
|
rev[4]);
|
||||||
#endif
|
#endif
|
||||||
display_printf("\nPlease contact Trezor support.\n");
|
display_printf("\nPlease contact Trezor support.\n");
|
||||||
shutdown_privileged();
|
shutdown();
|
||||||
for (;;)
|
for (;;)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
@ -120,7 +117,7 @@ error_shutdown(const char *line1, const char *line2, const char *line3,
|
|||||||
display_printf("\nPlease unplug the device.\n");
|
display_printf("\nPlease unplug the device.\n");
|
||||||
#endif
|
#endif
|
||||||
display_backlight(255);
|
display_backlight(255);
|
||||||
shutdown_privileged();
|
shutdown();
|
||||||
for (;;)
|
for (;;)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user