mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-02 20:31:46 +00:00
Use app-local queue for messages coming from application.
Messages are now deferred until application thread call stack unwinds, events are checked.
This commit is contained in:
@@ -119,10 +119,6 @@ void EventDispatcher::request_stop() {
|
||||
is_running = false;
|
||||
}
|
||||
|
||||
void EventDispatcher::send_message(Message* const message) {
|
||||
message_map.send(message);
|
||||
}
|
||||
|
||||
void EventDispatcher::set_display_sleep(const bool sleep) {
|
||||
// TODO: Distribute display sleep message more broadly, shut down data generation
|
||||
// on baseband side, since all that data is being discarded during sleep.
|
||||
|
||||
Reference in New Issue
Block a user