diff --git a/Changelog.md b/Changelog.md index 667cc8e..95c3c31 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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 diff --git a/index.html b/index.html index 6af7273..423878c 100644 --- a/index.html +++ b/index.html @@ -29,7 +29,7 @@ diff --git a/js/commandController.js b/js/commandController.js index a15a75d..0b9ba9b 100644 --- a/js/commandController.js +++ b/js/commandController.js @@ -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);