]> jspc29.x-matter.uni-frankfurt.de Git - mvdsensorcontrol.git/commitdiff
debug
authorwww@jspc55 <www@jspc55>
Tue, 1 Jul 2014 14:41:38 +0000 (16:41 +0200)
committerwww@jspc55 <www@jspc55>
Tue, 1 Jul 2014 14:41:38 +0000 (16:41 +0200)
tools/unpacker/unpacker.cxx

index 7e2d0739abe71179625d45e6625e5b9a205909b6..94223f7976ecf5a7d84597fba87c2fb76e03c674 100644 (file)
@@ -95,7 +95,7 @@ signed analyzeData(hadaq::RawSubevent* sub, unsigned ix, unsigned datalen, unsig
     if (sub->Data(ix)>>16 == 0xf002){
       // Version 2
       ix++;
-      sensorId     = sub->Data(ix++);
+      sensorId     = (source << 16)|(sub->Data(ix++)>>16);
       sensorStatus = sub->Data(ix++);
       ix += 2;  // skip reserved words
       external          = sub->Data(ix++);