From 7addb13785199f50416a858d99046185978a85d0 Mon Sep 17 00:00:00 2001 From: peteGSX <97784652+peteGSX@users.noreply.github.com> Date: Thu, 20 Apr 2023 07:21:32 +1000 Subject: [PATCH] Disable completely --- DCCEXParser.cpp | 4 +--- version.h | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DCCEXParser.cpp b/DCCEXParser.cpp index 728b157..0335438 100644 --- a/DCCEXParser.cpp +++ b/DCCEXParser.cpp @@ -430,9 +430,7 @@ void DCCEXParser::parseOne(Print *stream, byte *com, RingStream * ringStream) DCC::writeCVBit(p[0], p[1], p[2], callback_B); return; -#endif case 'R': // READ CV ON PROG -#ifndef DISABLE_PROG if (params == 1) { // -- uses verify callback if (!stashCallback(stream, p, ringStream)) @@ -447,7 +445,6 @@ void DCCEXParser::parseOne(Print *stream, byte *com, RingStream * ringStream) DCC::readCV(p[0], callback_R); return; } -#endif if (params == 0) { // New read loco id if (!stashCallback(stream, p, ringStream)) @@ -456,6 +453,7 @@ void DCCEXParser::parseOne(Print *stream, byte *com, RingStream * ringStream) return; } break; +#endif case '1': // POWERON <1 [MAIN|PROG|JOIN]> { diff --git a/version.h b/version.h index f168477..c447973 100644 --- a/version.h +++ b/version.h @@ -4,7 +4,9 @@ #include "StringFormatter.h" -#define VERSION "4.2.47" +#define VERSION "4.2.48" +// 4.2.48 - Add DISABLE_PROG to disable programming to save RAM/Flash +// - Disables all DCC-EX prog commands and EXRAIL POM, leaves IFLOCO() // 4.2.47 - Correct response to // 4.2.46 - Support boards with inverted fault pin // 4.2.45 - Add ONCLOCKMINS to FastClock to allow hourly repeat events