From b41c1d14628e8f4bb7c12187b7aa4d0358d0ebcd Mon Sep 17 00:00:00 2001 From: "Ryan@iMac" Date: Wed, 11 Oct 2023 13:29:09 -0400 Subject: [PATCH] shoudl bit shift 4 for 1 byte --- armory/SolReader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armory/SolReader.h b/armory/SolReader.h index 424405f..f6c336b 100644 --- a/armory/SolReader.h +++ b/armory/SolReader.h @@ -122,7 +122,7 @@ inline int SolReader::ReadNextBlock(int isSkip){ 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( isSkip == 0 ){