Skip to content

Commit

Permalink
Merge pull request #1022 from mstevetodd/master
Browse files Browse the repository at this point in the history
fixed regression with LnWi states
  • Loading branch information
mstevetodd authored Apr 2, 2023
2 parents 208a619 + 66ca2c1 commit b235a07
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions EngineDriver/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="jmri.enginedriver"
android:versionCode="168"
android:versionName="2.35.168" android:installLocation="auto">
android:versionCode="169"
android:versionName="2.35.169" android:installLocation="auto">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" tools:ignore="ScopedStorage" />
Expand Down
2 changes: 1 addition & 1 deletion EngineDriver/src/main/java/jmri/enginedriver/turnouts.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String> rthm : tempRecentTurnoutsList) {
String sn = rthm.get("turnout");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions changelog-and-todo-list.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b235a07

Please sign in to comment.