]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
fixed channel 32/64 bug in TDC interface
authorHadaq in Frankfurt <hadaq@frankfurt>
Thu, 11 Apr 2013 14:25:36 +0000 (16:25 +0200)
committerHadaq in Frankfurt <hadaq@frankfurt>
Thu, 11 Apr 2013 14:25:36 +0000 (16:25 +0200)
.gitignore
web/htdocs/tdc/tdc.htm

index 475f4da6addfb5ea38d468991a7809967a569054..6a18f30dc6b65b8fa248920627582a6f4f44d4c1 100644 (file)
@@ -1,2 +1,4 @@
 web/htdocs/monitor-*
+web/htdocs/monitor
 *~
+*log
index fa26a2e268fb31cea10b6456308ca7b631cae58b..3811997c3a105534bf232badf7d51e0777f1c93b 100644 (file)
@@ -164,7 +164,7 @@ function setValues() {
 function setEnable(e,board,channel) {
   reg = Math.floor(channel/32) + 0xc802;
   op  = e.checked?"set":"clr";
-  getdata("../commands/putbit.pl?"+board+"-"+reg.toString(16)+"-"+op+"-"+(1<<(channel%32)).toString(16),0);
+  getdata("../commands/putbit.pl?"+board+"-"+reg.toString(16)+"-"+op+"-"+((0xffffffff+(1<<(channel%32))+1)%0x100000000).toString(16),0);
   settimers(200,50);
   }