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

Disable <R> completely

This commit is contained in:
peteGSX 2023-04-20 07:21:32 +10:00
parent b6f8889e8c
commit 7addb13785
2 changed files with 4 additions and 4 deletions

View File

@ -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)
{ // <R CV> -- 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)
{ // <R> 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]>
{

View File

@ -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 <JA 0>
// 4.2.46 - Support boards with inverted fault pin
// 4.2.45 - Add ONCLOCKMINS to FastClock to allow hourly repeat events