From 2115ada2a1f9a98f2a26eccccfbd2968b9669e71 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Mon, 20 Jan 2025 20:03:21 +0000 Subject: [PATCH] 5.4.2 bugfix fn31 flip --- DCC.cpp | 12 +++--------- version.h | 3 ++- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/DCC.cpp b/DCC.cpp index e60cf25..a5eafec 100644 --- a/DCC.cpp +++ b/DCC.cpp @@ -229,15 +229,9 @@ bool DCC::setFn( int cab, int16_t functionNumber, bool on) { // Flip function state (used from withrottle protocol) void DCC::changeFn( int cab, int16_t functionNumber) { - if (cab<=0 || functionNumber>31) return; - int reg = lookupSpeedTable(cab); - if (reg<0) return; - unsigned long funcmask = (1UL<28 // 5.4.1 - ESP32 bugfix packet buffer race // 5.4.0 - New version on master // 5.2.96 - EXRAIL additions XFWD() and XREV()