mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-27 08:46:01 -04:00
reworked usb serial communication (#1766)
This commit is contained in:
parent
58307aee9c
commit
7a4c3184a1
14 changed files with 188 additions and 53 deletions
|
@ -164,9 +164,8 @@ void EventDispatcher::dispatch(const eventmask_t events) {
|
|||
handle_rtc_tick();
|
||||
}
|
||||
|
||||
if (events & EVT_MASK_USB) {
|
||||
handle_usb();
|
||||
}
|
||||
handle_usb_transfer();
|
||||
handle_usb();
|
||||
|
||||
if (events & EVT_MASK_SWITCHES) {
|
||||
handle_switches();
|
||||
|
@ -225,6 +224,10 @@ void EventDispatcher::handle_usb() {
|
|||
portapack::usb_serial.dispatch();
|
||||
}
|
||||
|
||||
void EventDispatcher::handle_usb_transfer() {
|
||||
portapack::usb_serial.dispatch_transfer();
|
||||
}
|
||||
|
||||
void EventDispatcher::handle_shell() {
|
||||
if (waiting_for_shellmode) {
|
||||
waiting_for_shellmode = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue