mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 01:59:13 -04:00
Move sending of ShutdownMessage into shutdown().
Crazy, I know.
This commit is contained in:
parent
6328efb70b
commit
4b3fa25cef
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue