Added FLAGS_OUTPUT_ADDRESS_MODE to Dcc.init() to make it work again after the DCC Addressing changes

This commit is contained in:
Alex Shepherd
2022-07-30 14:54:12 +12:00
parent e1080f28fd
commit f1f214af3a

View File

@@ -9,7 +9,7 @@
#define NOTIFY_TURNOUT_MSG #define NOTIFY_TURNOUT_MSG
// You can also print other Debug Messages uncommenting the line below // You can also print other Debug Messages uncommenting the line below
#define DEBUG_MSG //#define DEBUG_MSG
// Un-Comment the line below to force CVs to be written to the Factory Default values // Un-Comment the line below to force CVs to be written to the Factory Default values
// defined in the FactoryDefaultCVs below on Start-Up // defined in the FactoryDefaultCVs below on Start-Up
@@ -134,7 +134,7 @@ void setup()
#endif #endif
// Call the main DCC Init function to enable the DCC Receiver // Call the main DCC Init function to enable the DCC Receiver
Dcc.init( MAN_ID_DIY, DCC_DECODER_VERSION_NUM, CV29_ACCESSORY_DECODER, 0 ); Dcc.init( MAN_ID_DIY, DCC_DECODER_VERSION_NUM, FLAGS_OUTPUT_ADDRESS_MODE | FLAGS_DCC_ACCESSORY_DECODER, 0 );
#ifdef DEBUG_MSG #ifdef DEBUG_MSG
Serial.print("\nNMRA DCC 8-Turnout Accessory Decoder. Ver: "); Serial.println(DCC_DECODER_VERSION_NUM,DEC); Serial.print("\nNMRA DCC 8-Turnout Accessory Decoder. Ver: "); Serial.println(DCC_DECODER_VERSION_NUM,DEC);