1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-14 14:27:25 +00:00

all: shut down emulator on error_shutdown

This commit is contained in:
matejcik 2020-02-11 11:25:09 +01:00
parent d3b88a37be
commit c14429c445
2 changed files with 3 additions and 4 deletions

View File

@ -102,9 +102,7 @@ error_shutdown(const char *line1, const char *line2, const char *line3,
printf("\nPlease unplug the device.\n");
display_backlight(255);
hal_delay(5000);
__shutdown();
for (;;)
;
exit(4);
}
void hal_delay(uint32_t ms) { usleep(1000 * ms); }

View File

@ -53,7 +53,8 @@ void setup(void) {
}
void __attribute__((noreturn)) shutdown(void) {
for (;;) pause();
sleep(5);
exit(4);
}
void emulatorRandom(void *buffer, size_t size) {