Skip to content

Commit 47697e7

Browse files
author
Darby Lim
committed
add macro
1 parent 5014a3a commit 47697e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

c++/include/dynamixel_sdk/packet_handler.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424

2525
#if defined(ARDUINO) || defined(__OPENCR__) || defined(__OPENCM904__)
2626
#include <Arduino.h>
27+
28+
#define ERROR_PRINT SerialBT2.print
29+
#else
30+
#define ERROR_PRINT printf
31+
2732
#endif
2833

2934
#include <stdio.h>

0 commit comments

Comments
 (0)