From 192f035daf89009e4070654ea9aaebd9cefee1c2 Mon Sep 17 00:00:00 2001 From: hadeshyp Date: Wed, 28 Nov 2012 19:05:32 +0000 Subject: [PATCH] *** empty log message *** --- cts/htdocs/thresh/getpadiwa.pl | 6 ++++++ cts/htdocs/thresh/padiwa.htm | 10 +++++++++- cts/htdocs/thresh/scripts.js | 4 +--- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/cts/htdocs/thresh/getpadiwa.pl b/cts/htdocs/thresh/getpadiwa.pl index c41384a..3d882e7 100755 --- a/cts/htdocs/thresh/getpadiwa.pl +++ b/cts/htdocs/thresh/getpadiwa.pl @@ -40,6 +40,12 @@ for(my $i=0; $i < 4; $i++) { $ret->[$i*4+2] = sendcmd(0x10020000,$i); $ret->[$i*4+3] = sendcmd(0x10030000,$i); } + elsif ($task eq "thresh") { + $num = 16; + for(my $j=0;$j<16;$j++) { + $ret->[$i*16+$j] = sendcmd(0x00000000+$j*0x10000,$i); + } + } } diff --git a/cts/htdocs/thresh/padiwa.htm b/cts/htdocs/thresh/padiwa.htm index 1ad5cdd..3dc5506 100644 --- a/cts/htdocs/thresh/padiwa.htm +++ b/cts/htdocs/thresh/padiwa.htm @@ -14,7 +14,7 @@
Configuration
Board
Update Interval (ms) -
Option +
Option
Min/Max
@@ -68,6 +68,14 @@ function update(data) { if(c[j][(i-1)*4+1].substr(2,2) != "28") val = "---"; o += ""+(val); } + else if(option == "thresh") { + o += ""; + for(k=1;k<=16;k++) { + val = c[j][(i-1)*16+k] & 0xffff; + if(val == 0 || val == 0xffff) val = "---"; + o += ""+(val.toString(16))+"
"; + } + } } } document.getElementById("content").innerHTML = o; diff --git a/cts/htdocs/thresh/scripts.js b/cts/htdocs/thresh/scripts.js index 46ed40e..ee458dc 100644 --- a/cts/htdocs/thresh/scripts.js +++ b/cts/htdocs/thresh/scripts.js @@ -42,9 +42,7 @@ function findcolor(v,min,max,lg) { if (v == 0 || v