Skip to content

Commit

Permalink
asp5033: fix K value
Browse files Browse the repository at this point in the history
As QioTek told me via email.

Signed-off-by: Julian Oes <[email protected]>
  • Loading branch information
julianoes authored and dagar committed Sep 6, 2023
1 parent 38b0de9 commit 35c1d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/differential_pressure/asp5033/ASP5033.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ int ASP5033::collect()

// k is a shift based on the pressure range of the device. See
// table in the datasheet
constexpr uint8_t k = 8;
constexpr uint8_t k = 7;
constexpr float press_scale = 1.0f / (1U << k); //= 1.0f / (1U << k);
press_sum += press * press_scale;
press_count++;
Expand Down

0 comments on commit 35c1d5d

Please sign in to comment.