Skip to content
Commit b25f548b authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

sensors: Account for base unit rather than starting unit in SensorUnitModel

Otherwise we end up with incorrect multipliers if start isn't the base
unit, since scaleDownFactor will calculate how to go down from something
like "Mega" to prefix-less, resulting in tiny multipliers, instead of
always starting at 1 and calculating offsets from there.

BUG: 461143
parent 5ca5d52a
Pipeline #307942 passed with stage
in 7 minutes and 30 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment