Skip to content

Commit

Permalink
c++: Channel offset defaults to 0, not 1
Browse files Browse the repository at this point in the history
Fixes #1135.

Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
pcercuei committed Jan 31, 2024
1 parent 4883444 commit 7ae4836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/cpp/iiopp.h
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ inline double value(Channel ch)
if (auto att = ch.find_attr("scale"))
scale = att.read_double();

double offset = 1;
double offset = 0;
if (auto att = ch.find_attr("offset"))
offset = att.read_double();

Expand Down

0 comments on commit 7ae4836

Please sign in to comment.