all: shut down emulator on error_shutdown

pull/840/head
matejcik 4 years ago
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…
Cancel
Save