Skip to content

Commit 06fe054

Browse files
committed
Recognize new tdc5 in dldprint
1 parent d3682bf commit 06fe054

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

plugins/dogma/dldprint.cxx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,15 @@ void print_tu(dogma::DogmaTu *tu, const char *prefix = "")
102102
if (!onlytdc || (onlytdc == tu->GetAddr())) {
103103
epoch0 = tu->GetTrigTime() & 0xfffffff;
104104
coarse0 = tu->GetLocalTrigTime() & 0x7ff;
105-
printf("%sTu addr:%06x magic:%02x trigtype:%02x trignum:%06x epoch0:%u tc0:%03x err:%02x frame:%02x paylod:%04x size:%u\n", prefix,
106-
(unsigned)tu->GetAddr(), (unsigned)tu->GetMagicType(),
105+
printf("%sTu addr:%06x", prefix, (unsigned)tu->GetAddr());
106+
if (tu->IsMagic())
107+
printf(" magic:%02x", (unsigned) tu->GetMagicType());
108+
else if(tu->IsMagicTdc5())
109+
printf(" tdc5:%04x", (unsigned) tu->GetMagic() & 0xffff);
110+
else
111+
printf(" unkn:%08x", (unsigned) tu->GetMagic());
112+
113+
printf(" trigtype:%02x trignum:%06x epoch0:%u tc0:%03x err:%02x frame:%02x paylod:%04x size:%u\n",
107114
(unsigned)tu->GetTrigType(), (unsigned)tu->GetTrigNumber(),
108115
(unsigned)tu->GetTrigTime() & 0xfffffff, (unsigned)tu->GetLocalTrigTime() & 0x7ff,
109116
(unsigned)tu->GetErrorBits(), (unsigned)tu->GetFrameBits(), (unsigned)tu->GetPayloadLen(), (unsigned) tu->GetSize());

0 commit comments

Comments
 (0)