From 66ca2c1185118a493925990b15d45a7a47c14774 Mon Sep 17 00:00:00 2001 From: stevet Date: Sat, 1 Apr 2023 22:42:27 -0400 Subject: [PATCH] fixed regression with LnWi states --- EngineDriver/src/main/AndroidManifest.xml | 4 ++-- EngineDriver/src/main/java/jmri/enginedriver/turnouts.java | 2 +- .../src/main/java/jmri/enginedriver/util/comm_thread.java | 2 +- changelog-and-todo-list.txt | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/EngineDriver/src/main/AndroidManifest.xml b/EngineDriver/src/main/AndroidManifest.xml index f41cff9c0..18f88ce6f 100644 --- a/EngineDriver/src/main/AndroidManifest.xml +++ b/EngineDriver/src/main/AndroidManifest.xml @@ -2,8 +2,8 @@ + android:versionCode="169" + android:versionName="2.35.169" android:installLocation="auto"> diff --git a/EngineDriver/src/main/java/jmri/enginedriver/turnouts.java b/EngineDriver/src/main/java/jmri/enginedriver/turnouts.java index 8ae90481b..b3e8542b8 100644 --- a/EngineDriver/src/main/java/jmri/enginedriver/turnouts.java +++ b/EngineDriver/src/main/java/jmri/enginedriver/turnouts.java @@ -993,7 +993,7 @@ private void loadRecentTurnoutsList() { } } - //replace recent list with from temp list, suppressing where requested + //replace recent list from temp list, suppressing where requested recentTurnoutsList.clear(); for (HashMap rthm : tempRecentTurnoutsList) { String sn = rthm.get("turnout"); diff --git a/EngineDriver/src/main/java/jmri/enginedriver/util/comm_thread.java b/EngineDriver/src/main/java/jmri/enginedriver/util/comm_thread.java index 35ef849f5..cf7f6fb49 100644 --- a/EngineDriver/src/main/java/jmri/enginedriver/util/comm_thread.java +++ b/EngineDriver/src/main/java/jmri/enginedriver/util/comm_thread.java @@ -622,7 +622,7 @@ protected void sendTurnout(String cmd) { if (!mainapp.isDCCEX) { // not DCC-EX //special "toggle" handling for LnWi if (mainapp.getServerType().equals("Digitrax") && action == '2') { - action = cs.equals("4")?'T':'C'; + action = cs.equals("C")?'T':'C'; //LnWi states are C/T (not 2/4) } wifiSend("PTA" + action + systemName); diff --git a/changelog-and-todo-list.txt b/changelog-and-todo-list.txt index 45da5cb57..e4502edea 100644 --- a/changelog-and-todo-list.txt +++ b/changelog-and-todo-list.txt @@ -1,4 +1,5 @@ **Version 2.35.168 + * fixed regression with LnWi states **Version 2.35.164 * New 'Tablet Vertical Left (1-6)' throttle screen layout * Fix for when deleting servers from the recent list