Skip to content

Commit afe8d13

Browse files
committed
Allow compilation on non-mbed targets
1 parent 5110146 commit afe8d13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/RS485CrashLog/RS485CrashLog.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
* Initial author: Sebastian Romero @sebromero
77
*/
88

9+
#ifdef ARDUINO_ARCH_MBED
910
#include "RS485FileHandle.h"
10-
1111
REDIRECT_STDOUT_TO(&RS485Console) // Redirect mbed crash log output to RS485
12+
#endif
1213

1314
void setup() {
1415
// Force a crash to demonstrate the crash log over RS485

0 commit comments

Comments
 (0)