From 4381002da2920ea9694bcb1d0ac679c82da3bb53 Mon Sep 17 00:00:00 2001 From: David Madison Date: Sat, 10 Feb 2024 20:30:55 -0500 Subject: [PATCH] Move serialEvent fix to dummy interface Accidentally put it in the *real* interface block. Whoops... --- teensy/avr/cores/teensy4/usb_serial.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teensy/avr/cores/teensy4/usb_serial.h b/teensy/avr/cores/teensy4/usb_serial.h index b90ed25..05d7869 100644 --- a/teensy/avr/cores/teensy4/usb_serial.h +++ b/teensy/avr/cores/teensy4/usb_serial.h @@ -186,7 +186,6 @@ 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) @@ -224,6 +223,7 @@ class usb_serial_class : public Stream }; extern usb_serial_class Serial; +extern void serialEvent(void) __attribute__((weak)); #endif // __cplusplus #endif // !defined(USB_DISABLED)