mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-22 21:41:48 +00:00
Move sending of ShutdownMessage into shutdown().
Crazy, I know.
This commit is contained in:
@@ -109,6 +109,9 @@ static void shutdown() {
|
|||||||
chSysDisable();
|
chSysDisable();
|
||||||
|
|
||||||
systick_stop();
|
systick_stop();
|
||||||
|
|
||||||
|
ShutdownMessage shutdown_message;
|
||||||
|
shared_memory.application_queue.push(shutdown_message);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void halt() {
|
static void halt() {
|
||||||
@@ -202,9 +205,6 @@ int main(void) {
|
|||||||
|
|
||||||
shutdown();
|
shutdown();
|
||||||
|
|
||||||
ShutdownMessage shutdown_message;
|
|
||||||
shared_memory.application_queue.push(shutdown_message);
|
|
||||||
|
|
||||||
halt();
|
halt();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user