JohnySeven / TWatchSK

TTGO T-Watch 2020 v1 supporting Signal K features for displaying boat data and controlling devices on board.
MIT License
9 stars 1 forks source link

BUG: DynamicView label with multiply and offset in the Format does the math wrong #75

Closed ba58smith closed 2 years ago

ba58smith commented 2 years ago

dynamic_label.cpp, line 142 is stringValue = String((value.as() + formating.offset) * formating.multiply, formating.decimal_places);

That adds the offset, then multiplies by the multiply. It should do the opposite: multiply by the multiply, then add the offset.

ba58smith commented 2 years ago

See PR #76.

ba58smith commented 2 years ago

Closed by merging PR #76.