From e27c176fdf611d1f470e9cbcdd71d073a2d9bc6d Mon Sep 17 00:00:00 2001 From: Asbelos Date: Sun, 5 Jul 2020 21:24:54 +0100 Subject: [PATCH] No reminders for F13-F28 --- DCC.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DCC.cpp b/DCC.cpp index 462b5c4..2f9db18 100644 --- a/DCC.cpp +++ b/DCC.cpp @@ -347,10 +347,12 @@ bool DCC::issueReminder(int reg) { case 4: // remind function group 4 F13-F20 if (flags & FN_GROUP_4) setFunctionInternal(loco,222, ((functions>>13)& 0xFF)); + flags&= ~FN_GROUP_4; // dont send them again break; case 5: // remind function group 5 F21-F28 if (flags & FN_GROUP_5) setFunctionInternal(loco,223, ((functions>>21)& 0xFF)); + flags&= ~FN_GROUP_5; // dont send them again break; } loopStatus++;