From 0f5ecef0835d2c5a944254e538761f79e1374c2c Mon Sep 17 00:00:00 2001 From: Asbelos Date: Thu, 27 Oct 2022 13:28:40 +0100 Subject: [PATCH] Add base addr diagnostic --- EXRAIL2.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/EXRAIL2.cpp b/EXRAIL2.cpp index 9809f28..2dd10ec 100644 --- a/EXRAIL2.cpp +++ b/EXRAIL2.cpp @@ -41,6 +41,7 @@ */ #include +#include "defines.h" #include "EXRAIL2.h" #include "DCC.h" #include "DCCWaveform.h" @@ -143,6 +144,12 @@ LookList* RMFT2::LookListLoader(OPCODE op1, OPCODE op2, OPCODE op3) { } /* static */ void RMFT2::begin() { + + #if defined(ARDUINO_AVR_MEGA) || defined(ARDUINO_AVR_MEGA2560) + // AVR_MEGA memory position for diagnostic only + DIAG(F("EXRAIL RouteAddr=%l"),pgm_get_far_address(RMFT2::RouteCode)); + #endif + bool saved_diag=diag; diag=true; DCCEXParser::setRMFTFilter(RMFT2::ComandFilter);