From d895a54078c1f9e6276a1dbd8a3750b7798d8fb9 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Thu, 10 Dec 2015 17:33:44 -0800 Subject: [PATCH] Almost finished moving around baseband init/shutdown code. --- firmware/baseband/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/baseband/main.cpp b/firmware/baseband/main.cpp index 036e0cd8a..4055b281a 100755 --- a/firmware/baseband/main.cpp +++ b/firmware/baseband/main.cpp @@ -112,8 +112,6 @@ static void shutdown() { // TODO: Is this complete? nvicDisableVector(DMA_IRQn); - - m0apptxevent_interrupt_disable(); chSysDisable(); @@ -157,7 +155,7 @@ public: dispatch(events); } - shutdown(); + m0apptxevent_interrupt_disable(); } void request_stop() { @@ -205,5 +203,7 @@ int main(void) { EventDispatcher event_dispatcher; event_dispatcher.run(); + shutdown(); + return 0; }