]> jspc29.x-matter.uni-frankfurt.de Git - mvdsensorcontrol.git/commitdiff
corrected field value range in tooltip
authorMichael Wiebusch <stratomaster@gmx.net>
Sun, 11 Aug 2013 16:04:42 +0000 (18:04 +0200)
committerMichael Wiebusch <stratomaster@gmx.net>
Sun, 11 Aug 2013 16:04:42 +0000 (18:04 +0200)
tools/jtageditor.pl

index 92f41fa869503218efaa32ac6e82d76d4f886b13..bef9e7c250ac924e11d88633aa7ec22c1d795465 100755 (executable)
@@ -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",