]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
fix number of channels
authorJan Michel <j.michel@gsi.de>
Sat, 24 Sep 2016 20:32:13 +0000 (22:32 +0200)
committerJan Michel <j.michel@gsi.de>
Sat, 24 Sep 2016 20:32:13 +0000 (22:32 +0200)
web/htdocs/thresh/threshold.htm

index ac453542d6c969185ef72d041ffff07d628c9762..0502aefd15b3faf2f511eb1ea912a0f0646842e8 100644 (file)
@@ -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(); });