1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-24 00:26:13 +01:00

Add base addr diagnostic

This commit is contained in:
Asbelos 2022-10-27 13:28:40 +01:00
parent 9dc16356db
commit 0f5ecef083

View File

@ -41,6 +41,7 @@
*/ */
#include <Arduino.h> #include <Arduino.h>
#include "defines.h"
#include "EXRAIL2.h" #include "EXRAIL2.h"
#include "DCC.h" #include "DCC.h"
#include "DCCWaveform.h" #include "DCCWaveform.h"
@ -143,6 +144,12 @@ LookList* RMFT2::LookListLoader(OPCODE op1, OPCODE op2, OPCODE op3) {
} }
/* static */ void RMFT2::begin() { /* 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; bool saved_diag=diag;
diag=true; diag=true;
DCCEXParser::setRMFTFilter(RMFT2::ComandFilter); DCCEXParser::setRMFTFilter(RMFT2::ComandFilter);