mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-13 18:18:08 +00:00
all: shut down emulator on error_shutdown
This commit is contained in:
parent
d3b88a37be
commit
c14429c445
@ -102,9 +102,7 @@ error_shutdown(const char *line1, const char *line2, const char *line3,
|
|||||||
printf("\nPlease unplug the device.\n");
|
printf("\nPlease unplug the device.\n");
|
||||||
display_backlight(255);
|
display_backlight(255);
|
||||||
hal_delay(5000);
|
hal_delay(5000);
|
||||||
__shutdown();
|
exit(4);
|
||||||
for (;;)
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void hal_delay(uint32_t ms) { usleep(1000 * ms); }
|
void hal_delay(uint32_t ms) { usleep(1000 * ms); }
|
||||||
|
@ -53,7 +53,8 @@ void setup(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void __attribute__((noreturn)) shutdown(void) {
|
void __attribute__((noreturn)) shutdown(void) {
|
||||||
for (;;) pause();
|
sleep(5);
|
||||||
|
exit(4);
|
||||||
}
|
}
|
||||||
|
|
||||||
void emulatorRandom(void *buffer, size_t size) {
|
void emulatorRandom(void *buffer, size_t size) {
|
||||||
|
Loading…
Reference in New Issue
Block a user