mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-29 09:07:17 -04:00
Enable M4 interrupt on M0 core only when M4 image is running.
This commit is contained in:
parent
c7497577a0
commit
e263420ea3
2 changed files with 4 additions and 4 deletions
|
@ -105,14 +105,10 @@ EventDispatcher::EventDispatcher(
|
|||
}
|
||||
|
||||
void EventDispatcher::run() {
|
||||
creg::m4txevent::enable();
|
||||
|
||||
while(is_running) {
|
||||
const auto events = wait();
|
||||
dispatch(events);
|
||||
}
|
||||
|
||||
creg::m4txevent::disable();
|
||||
}
|
||||
|
||||
void EventDispatcher::request_stop() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue