From: Michael Wiebusch Date: Sun, 11 Aug 2013 16:04:42 +0000 (+0200) Subject: corrected field value range in tooltip X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=dcbeee061b71f0120a29dd7ee39678e8b1ee3e43;p=mvdsensorcontrol.git corrected field value range in tooltip --- diff --git a/tools/jtageditor.pl b/tools/jtageditor.pl index 92f41fa..bef9e7c 100755 --- a/tools/jtageditor.pl +++ b/tools/jtageditor.pl @@ -2,7 +2,7 @@ print "Content-type: text/html\n\n"; # TODO - +# correct size in tooltip # implement a hex/bin/dec converter that is easy to use # remove CGI processing routines that are now in xmlOperation.pl @@ -368,7 +368,7 @@ sub print_fields { || "n/a" ); - my $maxFieldVal = 2**$fieldSize; + my $maxFieldVal = 2**$fieldSize-1; my $sizeInfo = sprintf( "Field contains %d bits, possible values: 0-%d (0x0-0x%x)\n\n",