Skip to content

Commit b000358

Browse files
pmmarquezaentinger
authored andcommitted
More general solution for external RS485_DEFAULT_DE_PIN definition
1 parent 8bdcaa1 commit b000358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RS485.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#endif
3131
#endif
3232

33+
#ifndef RS485_DEFAULT_DE_PIN
3334
#ifdef __AVR__
3435
#define RS485_DEFAULT_DE_PIN 2
3536
#define RS485_DEFAULT_RE_PIN -1
@@ -40,7 +41,6 @@
4041
#define RS485_DEFAULT_DE_PIN A4
4142
#define RS485_DEFAULT_RE_PIN A5
4243
#else
43-
#ifndef RS485_DEFAULT_DE_PIN
4444
#define RS485_DEFAULT_DE_PIN A6
4545
#define RS485_DEFAULT_RE_PIN A5
4646
#endif

0 commit comments

Comments
 (0)