From f1f214af3a542c524620911a97e8cd762e2db0a4 Mon Sep 17 00:00:00 2001 From: Alex Shepherd Date: Sat, 30 Jul 2022 14:54:12 +1200 Subject: [PATCH] Added FLAGS_OUTPUT_ADDRESS_MODE to Dcc.init() to make it work again after the DCC Addressing changes --- .../NmraDccAccessoryDecoder_Pulsed_8.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/NmraDccAccessoryDecoder_Pulsed_8/NmraDccAccessoryDecoder_Pulsed_8.ino b/examples/NmraDccAccessoryDecoder_Pulsed_8/NmraDccAccessoryDecoder_Pulsed_8.ino index 811b394..6eba72e 100644 --- a/examples/NmraDccAccessoryDecoder_Pulsed_8/NmraDccAccessoryDecoder_Pulsed_8.ino +++ b/examples/NmraDccAccessoryDecoder_Pulsed_8/NmraDccAccessoryDecoder_Pulsed_8.ino @@ -9,7 +9,7 @@ #define NOTIFY_TURNOUT_MSG // 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 // defined in the FactoryDefaultCVs below on Start-Up @@ -134,7 +134,7 @@ void setup() #endif // 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 Serial.print("\nNMRA DCC 8-Turnout Accessory Decoder. Ver: "); Serial.println(DCC_DECODER_VERSION_NUM,DEC);