Skip to content

Commit 850046b

Browse files
committed
Fix CI compilation for Portenta H7/M4 - no SerialUSB available.
1 parent 8a86745 commit 850046b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/ts_serial/ts_serial.ino

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ void serial_thread_func();
2222

2323
static char thread_name[NUM_THREADS][32];
2424
#undef Serial
25-
SerialDispatcher Serial(SerialUSB);
25+
#ifdef ARDUINO_PORTENTA_H7_M4
26+
SerialDispatcher Serial(Serial1); /* No SerialUSB for Portenta H7 / M4 Core */
27+
#else
28+
SerialDispatcher Serial(SerialUSB);
29+
#endif
2630

2731
/**************************************************************************************
2832
* SETUP/LOOP

0 commit comments

Comments
 (0)