asp5033: fix K value

As QioTek told me via email.

Signed-off-by: Julian Oes <julian@oes.ch>
This commit is contained in:
Julian Oes
2023-09-06 14:01:47 +12:00
committed by Daniel Agar
parent 38b0de94c1
commit 35c1d5d9b1
@@ -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++;