From 10e734e07dccf648bfd237a266b2ef85062b513e Mon Sep 17 00:00:00 2001 From: "Ryan@WorkStation" Date: Wed, 11 Oct 2023 13:31:12 -0400 Subject: [PATCH] fix incorrect bit shift --- SolReader.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SolReader.h b/SolReader.h index 64230ed..55b5e21 100644 --- a/SolReader.h +++ b/SolReader.h @@ -116,7 +116,7 @@ inline int SolReader::ReadNextBlock(int opt){ hit->SetDataType(DataFormat::RAW, ((blockStartIdentifier >> 1) & 0xF) == 0 ? DPPType::PHA : DPPType::PSD); } hit->dataType = blockStartIdentifier & 0xF; - hit->DPPType = ((blockStartIdentifier >> 1) & 0xF) == 0 ? DPPType::PHA : DPPType::PSD; + hit->DPPType = ((blockStartIdentifier >> 4) & 0xF) == 0 ? DPPType::PHA : DPPType::PSD; if( hit->dataType == DataFormat::ALL){ if( opt == 0 ){ @@ -236,4 +236,4 @@ void SolReader::ScanNumBlock(){ } -#endif \ No newline at end of file +#endif