Skip to content

Commit 2b44307

Browse files
Fix proprocessor warning because of redefinition
1 parent af9604e commit 2b44307

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/RS485.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@
5151
#endif
5252

5353
#ifdef CUSTOM_RS485_DEFAULT_DE_PIN
54+
# undef RS485_DEFAULT_DE_PIN
5455
# define RS485_DEFAULT_DE_PIN CUSTOM_RS485_DEFAULT_DE_PIN
5556
#endif
5657

5758
#ifdef CUSTOM_RS485_DEFAULT_RE_PIN
59+
# undef RS485_DEFAULT_RE_PIN
5860
# define RS485_DEFAULT_RE_PIN CUSTOM_RS485_DEFAULT_RE_PIN
5961
#endif
6062

0 commit comments

Comments
 (0)