diff --git a/firmware/application/main.cpp b/firmware/application/main.cpp index 66060469..0f317e28 100755 --- a/firmware/application/main.cpp +++ b/firmware/application/main.cpp @@ -283,6 +283,8 @@ int main(void) { event_dispatcher.run(); + sdcStop(&SDCD1); + portapack::shutdown(); m4_init(portapack::spi_flash::hackrf, portapack::memory::map::m4_code_hackrf); diff --git a/firmware/application/portapack.cpp b/firmware/application/portapack.cpp index b640d357..67ee181f 100644 --- a/firmware/application/portapack.cpp +++ b/firmware/application/portapack.cpp @@ -143,8 +143,6 @@ void init() { } void shutdown() { - sdcStop(&SDCD1); - display.shutdown(); radio::disable();