diff --git a/NmraDcc.cpp b/NmraDcc.cpp index 46ae1d3..bf9542e 100644 --- a/NmraDcc.cpp +++ b/NmraDcc.cpp @@ -1530,9 +1530,7 @@ void NmraDcc::pin( uint8_t ExtIntNum, uint8_t ExtIntPinNum, uint8_t EnablePullup #else DccProcState.ExtIntMask = 1; #endif - pinMode( ExtIntPinNum, INPUT ); - if( EnablePullup ) - digitalWrite(ExtIntPinNum, HIGH); + pinMode( ExtIntPinNum, EnablePullup ? INPUT_PULLUP : INPUT ); } //////////////////////////////////////////////////////////////////////// diff --git a/NmraDcc.h b/NmraDcc.h index 3bd3a45..a9874ca 100644 --- a/NmraDcc.h +++ b/NmraDcc.h @@ -57,7 +57,7 @@ #ifndef NMRADCC_IS_IN #define NMRADCC_IS_IN -#define NMRADCC_VERSION 205 // Version 2.0.5 +#define NMRADCC_VERSION 206 // Version 2.0.6 #define MAX_DCC_MESSAGE_LEN 6 // including XOR-Byte diff --git a/library.properties b/library.properties index e8518ef..ad5964e 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=NmraDcc -version=2.0.5 +version=2.0.6 author=Alex Shepherd, Wolfgang Kuffer, Geoff Bunza, Martin Pischky, Franz-Peter Müller, Sven (littleyoda), Hans Tanner maintainer=Alex Shepherd sentence=Enables NMRA DCC Communication