From: Jan Michel Date: Mon, 9 Jul 2018 15:54:20 +0000 (+0200) Subject: change threshold GUI registers for new DiRich MachXO designs X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=01f133423858e33891a24a8a8db6a81b3ac732b8;p=daqtools.git change threshold GUI registers for new DiRich MachXO designs --- diff --git a/web/htdocs/thresh/threshold.htm b/web/htdocs/thresh/threshold.htm index 4b1b4c8..50fcc79 100644 --- a/web/htdocs/thresh/threshold.htm +++ b/web/htdocs/thresh/threshold.htm @@ -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); }