From 13854cdd3e77eae9764f0a5ced35d5ecd9394f23 Mon Sep 17 00:00:00 2001 From: Pedro Marquez Date: Thu, 1 Feb 2024 11:16:30 +0100 Subject: [PATCH] More general solution for external RS485_DEFAULT_DE_PIN definition --- src/RS485.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RS485.h b/src/RS485.h index 8d01799..c71314e 100644 --- a/src/RS485.h +++ b/src/RS485.h @@ -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 @@ -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