Skip to content

Commit dbcb445

Browse files
authored
Merge pull request #51 from arduino-libraries/custom-re-de-pin
Allow definition of RE/DE pin via C-Defines
2 parents 8bdcaa1 + c78a515 commit dbcb445

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/RS485.h

+7
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@
4646
#endif
4747
#endif
4848

49+
#ifdef CUSTOM_RS485_DEFAULT_DE_PIN
50+
# define RS485_DEFAULT_DE_PIN CUSTOM_RS485_DEFAULT_DE_PIN
51+
#endif
52+
53+
#ifdef CUSTOM_RS485_DEFAULT_RE_PIN
54+
# define RS485_DEFAULT_RE_PIN CUSTOM_RS485_DEFAULT_RE_PIN
55+
#endif
4956

5057
#define RS485_DEFAULT_PRE_DELAY 50
5158
#define RS485_DEFAULT_POST_DELAY 50

0 commit comments

Comments
 (0)