Skip to content

Commit

Permalink
allow 31 functions for locos acquired by DCC Address
Browse files Browse the repository at this point in the history
  • Loading branch information
flash62au committed Dec 9, 2024
1 parent 68fdb2b commit 2a8db12
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 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.37
- allow 31 functions for locos acquired by DCC Address

# Version 1.3.36
- bug fix for only two turnouts/points

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.36";
var version = "1.3.37";
</script>

<link href="images/favicon.ico" rel="shortcut icon" type="image/x-icon">
Expand Down
11 changes: 7 additions & 4 deletions js/exwebthrottle.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ window.functions = {
"f25": 0,
"f26": 0,
"f27": 0,
"f28": 0
"f28": 0,
"f29": 0,
"f30": 0,
"f31": 0
};
window.isStopped = true;
window.isDirectionToggleStopped = false;
Expand Down Expand Up @@ -140,7 +143,7 @@ function uiDisable(status) {
$("#normal-stop").addClass("ui-state-disabled")
$("#button-right").addClass("ui-state-disabled")
$("#button-left").addClass("ui-state-disabled")
for (i = 0; i <= 28; i++) {
for (i = 0; i <= 31; i++) {
$("#f" + i).addClass("ui-state-disabled")
}

Expand All @@ -163,7 +166,7 @@ function uiDisable(status) {
$("#normal-stop").removeClass("ui-state-disabled")
$("#button-right").removeClass("ui-state-disabled")
$("#button-left").removeClass("ui-state-disabled")
for (i = 0; i <= 28; i++) {
for (i = 0; i <= 31; i++) {
$("#f" + i).removeClass("ui-state-disabled")
}

Expand Down Expand Up @@ -545,7 +548,7 @@ function setPositionOfDirectionSlider(dir) { //1=forward -1=reverse 0=stop
// This function will generate commands for each type of function
function generateFnCommand(clickedBtn) {

func = clickedBtn.attr('name'); // Gives function name (F1, F2, .... F28)
func = clickedBtn.attr('name'); // Gives function name (F1, F2, .... F31)
fn = parseInt(func.substring(1));
eventType = clickedBtn.data("type"); // Gives type of button (Press/Hold or Toggle)
btnPressed = clickedBtn.attr("aria-pressed");
Expand Down
3 changes: 3 additions & 0 deletions js/fnMaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ var fnMasterData = {
"f26": [0, 0, "F26", 1],
"f27": [0, 0, "F27", 1],
"f28": [0, 0, "F28", 1],
"f29": [0, 0, "F29", 1],
"f30": [0, 0, "F30", 1],
"f31": [0, 0, "F31", 1]
};

0 comments on commit 2a8db12

Please sign in to comment.