From 589336eac317fe63be784fe5d42d8cf081f80236 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sat, 7 May 2022 08:47:34 +0200 Subject: [PATCH] better bugfix for bitfield in turnout struct --- Turnouts.h | 6 +++--- version.h | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Turnouts.h b/Turnouts.h index 709ab6c..b181709 100644 --- a/Turnouts.h +++ b/Turnouts.h @@ -60,9 +60,9 @@ protected: union { struct { bool closed : 1; - bool _rfu: 2; - uint8_t turnoutType : 4; - bool hidden: 1; + bool hidden : 1; + bool _rfu : 1; + uint8_t turnoutType : 5; }; uint8_t flags; }; diff --git a/version.h b/version.h index bea474f..7890e6b 100644 --- a/version.h +++ b/version.h @@ -4,7 +4,10 @@ #include "StringFormatter.h" -#define VERSION "4.1.0" +#define VERSION "4.1.1rc1" +// 4.1.1 Bugfix: preserve turnout format +// 4.1.0 ... +// // 4.0.2 EXRAIL additions: // ACK defaults set to 50mA LIMIT, 2000uS MIN, 20000uS MAX // myFilter automatic detection (no need to call setFilter)