Skip to content

Commit 09fd192

Browse files
committed
Update example after core change
To avoid any name conflict xstr macro was capitalized and required to include header file manually. See stm32duino/Arduino_Core_STM32#389 Signed-off-by: Frederic.Pillon <[email protected]>
1 parent b1dc9c4 commit 09fd192

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: examples/NonReg/SerialLoop/SerialLoop.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
This example code is in the public domain.
1111
*/
1212

13+
#include "utils.h"
14+
1315
/*
1416
* 1 - Connect Rx/Tx of the desired Serial
1517
* 2 - Define SERIAL_PORT_TESTED by setting Serial number to use 1,2,...
@@ -124,7 +126,7 @@ void setup() {
124126
SERIAL_PORT_MONITOR.begin(115200);
125127
while(!SERIAL_PORT_MONITOR);
126128
SERIAL_PORT_MONITOR.print("SerialLoop test on ");
127-
SERIAL_PORT_MONITOR.println(xstr(SERIAL_PORT_TESTED));
129+
SERIAL_PORT_MONITOR.println(XSTR(SERIAL_PORT_TESTED));
128130
SERIAL_PORT_MONITOR.print(configNb);
129131
SERIAL_PORT_MONITOR.println(" configs to test.");
130132
SERIAL_PORT_MONITOR.print(speedNb);

0 commit comments

Comments
 (0)