[Kst] branches/work/kst/1.5/kst/src/datasources/scuba2

Andrew Walker arwalker at sumusltd.com
Fri Sep 7 23:57:58 CEST 2007


SVN commit 709597 by arwalker:

allow for possible 'missing' readout cards

 M  +9 -0      scuba.cpp  


--- branches/work/kst/1.5/kst/src/datasources/scuba2/scuba.cpp #709596:709597
@@ -1026,6 +1026,15 @@
         }
 
         //
+        // we may need to change the colIndex if we are missing readout cards...
+        //
+        for (i=readoutCard-1; i>0 ; i--) {
+          if (_readoutCards.find(i) == _readoutCards.end()) {
+            colIndex -= COLUMNS_PER_READOUTCARD;
+          }
+        }
+
+        //
         // determine the field index...
         //
         if (_version > 111 && _format == FormatBinary) {


More information about the Kst mailing list