From d0245e9c51e4600bf5a2f5a1199d980eba90a801 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Fri, 19 Sep 2014 13:46:39 +0200 Subject: [PATCH] assume old format if header missing --- tools/unpacker/unpacker.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/unpacker/unpacker.cxx b/tools/unpacker/unpacker.cxx index d38bc23..6b0c053 100644 --- a/tools/unpacker/unpacker.cxx +++ b/tools/unpacker/unpacker.cxx @@ -86,7 +86,7 @@ signed analyzeData(hadaq::RawSubevent* sub, unsigned ix, unsigned datalen, unsig unsigned rocHead = sub->Data(ix++); if(((rocHead>>24) & 0xFF) != 1 || (rocHead & 0xFF) != 1) { - return -37; + ix--; //assume it's old format } else { unsigned externalTimer = sub->Data(ix++); -- 2.43.0