Skip to content

Commit

Permalink
Replace missing USB serialEvent declaration
Browse files Browse the repository at this point in the history
This was inadvertently removed upstream, although it's needed for the dummy Serial interface used by both XInput and USB_DISABLED.
  • Loading branch information
dmadison committed Feb 11, 2024
1 parent 1c1810a commit 7d66733
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions teensy/avr/cores/teensy4/usb_serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ class usb_serial_class : public Stream
};
// Serial provides USB Virtual Serial communication with your computer.
extern usb_serial_class Serial;
extern void serialEvent(void) __attribute__((weak));
#endif // __cplusplus

#else // !defined(USB_DISABLED)
Expand Down

0 comments on commit 7d66733

Please sign in to comment.