From e930465167f2b04b215a0308a4debb7c8623ea93 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Sat, 24 Sep 2016 22:32:13 +0200 Subject: [PATCH] fix number of channels --- web/htdocs/thresh/threshold.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/htdocs/thresh/threshold.htm b/web/htdocs/thresh/threshold.htm index ac45354..0502aef 100644 --- a/web/htdocs/thresh/threshold.htm +++ b/web/htdocs/thresh/threshold.htm @@ -173,7 +173,7 @@ Mousetrap.bind('R', function() {document.getElementById("form_ref").focus();}); Mousetrap.bind('a', function() { board = (parseInt(board,16)+1).toString(16); document.getElementById("form_board").value = board; setValues(); }); Mousetrap.bind('A', function() { board = (parseInt(board,16)-1).toString(16); document.getElementById("form_board").value = board; setValues(); }); -Mousetrap.bind('c', function() { ++chan; chan %= 16; document.getElementById("form_channel").value = chan; setValues(); }); +Mousetrap.bind('c', function() { ++chan; chan %= 32; document.getElementById("form_channel").value = chan; setValues(); }); Mousetrap.bind('d', function() { ++chain; chain %= 16; document.getElementById("form_chain").value = chain; setValues(); }); Mousetrap.bind(['C','v'], function() { --chan; chan%=32; if (chan<0) chan=31; document.getElementById("form_channel").value = chan; setValues(); }); Mousetrap.bind(['D','f'], function() { --chain; chain%=16; if (chain<0) chain=15; document.getElementById("form_chain").value = chain; setValues(); }); -- 2.43.0