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