From: Hadaq in Frankfurt Date: Thu, 11 Apr 2013 14:25:36 +0000 (+0200) Subject: fixed channel 32/64 bug in TDC interface X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=e8bc676f67340096918a78011ff81d65bd7e1ec7;p=daqtools.git fixed channel 32/64 bug in TDC interface --- diff --git a/.gitignore b/.gitignore index 475f4da..6a18f30 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ web/htdocs/monitor-* +web/htdocs/monitor *~ +*log diff --git a/web/htdocs/tdc/tdc.htm b/web/htdocs/tdc/tdc.htm index fa26a2e..3811997 100644 --- a/web/htdocs/tdc/tdc.htm +++ b/web/htdocs/tdc/tdc.htm @@ -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); }