diff --git a/DCCEXParser.cpp b/DCCEXParser.cpp index 3174b5b..b95d864 100644 --- a/DCCEXParser.cpp +++ b/DCCEXParser.cpp @@ -408,7 +408,7 @@ void DCCEXParser::parseOne(Print *stream, byte *com, RingStream * ringStream) ) break; // Honour the configuration option (config.h) which allows the command to be reversed // Because of earlier confusion we need to do the same thing under both defines -#if defined(DCC_ACCESSORY_COMMAND_REVERSE) || defined(DCC_ACCESSORY_RCN_213) +#if defined(DCC_ACCESSORY_COMMAND_REVERSE) DCC::setAccessory(address, subaddress,p[activep]==0,onoff); #else DCC::setAccessory(address, subaddress,p[activep]==1,onoff); diff --git a/Turnouts.cpp b/Turnouts.cpp index 8e212ed..dfe9615 100644 --- a/Turnouts.cpp +++ b/Turnouts.cpp @@ -379,7 +379,7 @@ // DCC++ Classic behaviour is that Throw writes a 1 in the packet, // and Close writes a 0. // RCN-213 specifies that Throw is 0 and Close is 1. -#if defined(DCC_TURNOUTS_RCN_213) +#ifndef DCC_TURNOUTS_RCN_213 close = !close; #endif DCC::setAccessory(_dccTurnoutData.address, _dccTurnoutData.subAddress, close); diff --git a/config.example.h b/config.example.h index 4d107aa..6aba226 100644 --- a/config.example.h +++ b/config.example.h @@ -269,8 +269,8 @@ The configuration file for DCC-EX Command Station // over DCC++. This #define likewise inverts the behaviour of the command // for triggering DCC Accessory Decoders, so that generates a // DCC packet with D=1 (close turnout) and generates D=0 -// (throw turnout). This is the same as DCC_ACCESSORY_COMMAND_REVERSE -//#define DCC_ACCESSORY_RCN_213 +// (throw turnout). +//#define DCC_ACCESSORY_COMMAND_REVERSE // HANDLING MULTIPLE SERIAL THROTTLES diff --git a/version.h b/version.h index d9cce2b..c25bfed 100644 --- a/version.h +++ b/version.h @@ -25,6 +25,9 @@ // 5.5.2 - DS1307 Real Time clock // 5.5.1 - Momentum // 5.5.0 - New version on devel +// 5.4.3 - bugfix changeFn for functions 29..31 +// 5.4.2 - Reversed turnout bugfix +// 5.4.1 - ESP32 bugfix packet buffer race // 5.4.0 - New version on master // 5.2.96 - EXRAIL additions XFWD() and XREV() // 5.2.95 - Release candidate for 5.4