From a47cebfdd59b9743ea1b5aab2dab68346e0991b7 Mon Sep 17 00:00:00 2001 From: bsongis Date: Tue, 8 May 2012 12:05:13 +0000 Subject: [PATCH] AutoSwitch adjustment for TRN --- src/open9x.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/open9x.cpp b/src/open9x.cpp index 4aac9a1bc..4b4856062 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -618,7 +618,8 @@ int8_t getMovedSwitch() } bool next = __getSwitch(i); if (prev != next) { - result = i; + if (i!=MAX_PSWITCH || next==true) + result = i; if (mask) switches_states ^= mask; else