mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-02 23:01:47 +00:00
Expose static EventDispatcher to stop main loop.
Used to fix reboot into HackRF firmware.
This commit is contained in:
@@ -90,6 +90,7 @@ private:
|
||||
|
||||
static MessageHandlerMap message_map;
|
||||
Thread* EventDispatcher::thread_event_loop = nullptr;
|
||||
bool EventDispatcher::is_running = false;
|
||||
|
||||
EventDispatcher::EventDispatcher(
|
||||
ui::Widget* const top_widget,
|
||||
@@ -101,6 +102,7 @@ EventDispatcher::EventDispatcher(
|
||||
init_message_queues();
|
||||
|
||||
thread_event_loop = chThdSelf();
|
||||
is_running = true;
|
||||
touch_manager.on_event = [this](const ui::TouchEvent event) {
|
||||
this->on_touch_event(event);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user