Skip to content

Commit

Permalink
More general solution for external RS485_DEFAULT_DE_PIN definition
Browse files Browse the repository at this point in the history
  • Loading branch information
pmmarquez committed Feb 1, 2024
1 parent 9d5872e commit 13854cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RS485.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#endif
#endif

#ifndef RS485_DEFAULT_DE_PIN
#ifdef __AVR__
#define RS485_DEFAULT_DE_PIN 2
#define RS485_DEFAULT_RE_PIN -1
Expand All @@ -40,7 +41,6 @@
#define RS485_DEFAULT_DE_PIN A4
#define RS485_DEFAULT_RE_PIN A5
#else
#ifndef RS485_DEFAULT_DE_PIN
#define RS485_DEFAULT_DE_PIN A6
#define RS485_DEFAULT_RE_PIN A5
#endif
Expand Down

0 comments on commit 13854cd

Please sign in to comment.