Skip to content

Commit

Permalink
bug fix for only two turnouts/points
Browse files Browse the repository at this point in the history
  • Loading branch information
flash62au committed Aug 31, 2024
1 parent 88d8c26 commit b7d58e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Version 1.3.36
- bug fix for only two turnouts/points

# Version 1.3.35
- bug fix for separate Stop button

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<link rel="manifest" href="manifest.json">
<script>
var version = "1.3.35";
var version = "1.3.36";
</script>

<link href="images/favicon.ico" rel="shortcut icon" type="image/x-icon">
Expand Down
2 changes: 1 addition & 1 deletion js/commandController.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ function parseResponse(cmd) { // some basic ones only
} else if (cmdArray[0].charAt(2) == 'T') { //turnouts/points
last = cmdArray.length-1;
if (cmdArrayClean.length > 1) { // if ==1, then no turnouts
if ( (cmdArrayClean.length == 2 ) ||
if ( (cmdArrayClean.length == 2 ) || (cmdArrayClean.length == 3 ) ||
( (cmdArrayClean.length > 3 ) && (cmdArrayClean[3].charAt(0) != '"' ) ) ) {
turnoutsCount = cmdArrayClean.length-1;
console.log(getTimeStamp() + ' Processing turnouts: ' + turnoutsCount);
Expand Down

0 comments on commit b7d58e9

Please sign in to comment.