mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 01:40:05 +00:00
EET does not use default scale and offset
This commit is contained in:
parent
e845968e57
commit
04e45978ad
1 changed files with 2 additions and 1 deletions
|
|
@ -1176,7 +1176,8 @@ ProductDescriptionBlock::data_value(std::uint8_t level) const
|
|||
|
||||
case 135:
|
||||
level = level & data_mask();
|
||||
[[fallthrough]];
|
||||
f = static_cast<float>(level) / dataScale - dataOffset;
|
||||
break;
|
||||
|
||||
default:
|
||||
f = static_cast<float>(level) * dataScale + dataOffset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue