diff --git a/firmware/target/hosted/sdl/system-sdl.c b/firmware/target/hosted/sdl/system-sdl.c index 649d74d94a..9d529de37f 100644 --- a/firmware/target/hosted/sdl/system-sdl.c +++ b/firmware/target/hosted/sdl/system-sdl.c @@ -23,9 +23,8 @@ #include #include #include -#include #include -#include "system-sdl.h" +#include "system.h" #include "thread-sdl.h" #include "sim-ui-defines.h" #include "lcd-sdl.h" @@ -168,7 +167,7 @@ void system_init(void) SDL_mutex *m; if (SDL_Init(SDL_INIT_TIMER)) panicf("%s", SDL_GetError()); - atexit(SDL_Quit); + atexit(sys_poweroff); c = SDL_CreateCond(); m = SDL_CreateMutex();