Skip to content

Commit

Permalink
Fix value calculation formula
Browse files Browse the repository at this point in the history
  • Loading branch information
ylabonte committed Jul 4, 2023
1 parent ed846f1 commit 4b82f2a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Empty file added src/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion src/proconip/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def __init__(self, column: int, name: str, unit: str, offset: float, gain: float
self._offset = offset
self._gain = gain
self._raw_value = value
self._value = (value - offset) * gain
self._value = self._offset + (self._gain * self._raw_value)

if column == 0:
self._category = CATEGORY_TIME
Expand Down

0 comments on commit 4b82f2a

Please sign in to comment.