Product code 34 doesn't use data level threshold halfwords

This commit is contained in:
Dan Paulat 2022-04-10 21:41:10 -05:00
parent 7b16972cb1
commit 0fc1b3a2bb

View file

@ -148,6 +148,7 @@ void Level3ProductView::UpdateColorTable()
return; return;
} }
int16_t productCode = descriptionBlock->product_code();
float offset = descriptionBlock->offset(); float offset = descriptionBlock->offset();
float scale = descriptionBlock->scale(); float scale = descriptionBlock->scale();
uint16_t threshold = descriptionBlock->threshold(); uint16_t threshold = descriptionBlock->threshold();
@ -184,7 +185,7 @@ void Level3ProductView::UpdateColorTable()
float f; float f;
// Different products use different scale/offset formulas // Different products use different scale/offset formulas
if (numberOfLevels > 16) if (numberOfLevels > 16 || productCode == 34)
{ {
if (i == RANGE_FOLDED && threshold > RANGE_FOLDED) if (i == RANGE_FOLDED && threshold > RANGE_FOLDED)
{ {