From 06592c6aca2dce938a270f5aa6b43a17552270bf Mon Sep 17 00:00:00 2001 From: "Ryan@SOLARIS_testStation" Date: Tue, 3 Sep 2024 15:55:58 -0400 Subject: [PATCH] ClassData.h, fix PSD decoder verbose display --- ClassData.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ClassData.h b/ClassData.h index 208f54f..39606c9 100644 --- a/ClassData.h +++ b/ClassData.h @@ -1133,10 +1133,16 @@ inline int Data::DecodePSDDualChannelBlock(unsigned int ChannelMask, bool fastDe //if( DataIndex[channel] >= dataSize ) ClearData(); //if( verbose >= 2 ) printf("extra : 0x%08x, Qshort : %d, Qlong : %d \n", extra, Qshort, Qlong); - if( verbose == 1 ) printf("ch : %2d, Qshort : %6d, Qlong : %6d, timestamp : %llu, fineTime : %u\n", - channel, Qshort, Qlong, timeStamp * tick2ns, (extra & 0x3FF) * tick2ns); - if( verbose >= 2 ) printf("Qshort : %6d, Qlong : %6d, timestamp : %llu, fineTime : %u\n", + if( verbose >= 1 ) { + if( extraOption == 0){ + printf("Qshort : %6d, Qlong : %6d, timestamp : %llu, baseline : %u\n", + Qshort, Qlong, timeStamp * tick2ns, (extra & 0xFFFF) * 4); + } + if( extraOption == 2){ + printf("Qshort : %6d, Qlong : %6d, timestamp : %llu, fineTime : %u\n", Qshort, Qlong, timeStamp * tick2ns, (extra & 0x3FF) * tick2ns); + } + }