]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
change threshold GUI registers for new DiRich MachXO designs
authorJan Michel <j.michel@gsi.de>
Mon, 9 Jul 2018 15:54:20 +0000 (17:54 +0200)
committerJan Michel <j.michel@gsi.de>
Mon, 9 Jul 2018 15:54:20 +0000 (17:54 +0200)
web/htdocs/thresh/threshold.htm

index 4b1b4c8189c9f73d271838438dd0cf9ff90c6140..50fcc794c06f7b526277b34ea1bbd54ecd24ce64 100644 (file)
@@ -82,7 +82,7 @@ function update(bar,scale) {
     command = total.toString(16);
     }
   else if(type == 2) {
-    command = (0x8 << 20) + ((chan%16+16) << 24) + (total); 
+    command = (0x8 << 20) + ((chan%16) << 24) + (total); 
     command = command.toString(16);
     }
   else if(type == 9) {
@@ -190,7 +190,7 @@ function setValues() {
     getdata(cmdstring,anaret2);
     }
   else if(type == 2) {
-    cmdstring = "../commands/spiexec.pl?"+board+"-d400-"+((((chan%16+16) << 24)).toString(16))+"-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-"+(1<<(Math.floor(chan/16)))+"-1";
+    cmdstring = "../commands/spiexec.pl?"+board+"-d400-"+((((chan%16) << 24)).toString(16))+"-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-"+(1<<(Math.floor(chan/16)))+"-1";
     document.getElementById("timeget").style.background = "#a55";
     getdata(cmdstring,anaret2);
     }