From 4b3fa25cef7301d3e3d28793237dfc7cbc5cece5 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Thu, 10 Dec 2015 17:19:18 -0800 Subject: [PATCH] Move sending of ShutdownMessage into shutdown(). Crazy, I know. --- 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 1edf47137..2a8e567cb 100755 --- a/firmware/baseband/main.cpp +++ b/firmware/baseband/main.cpp @@ -109,6 +109,9 @@ static void shutdown() { chSysDisable(); systick_stop(); + + ShutdownMessage shutdown_message; + shared_memory.application_queue.push(shutdown_message); } static void halt() { @@ -202,9 +205,6 @@ int main(void) { shutdown(); - ShutdownMessage shutdown_message; - shared_memory.application_queue.push(shutdown_message); - halt(); return 0;