From 35c1d5d9b1f80bb964f33a6686774d8a85415f77 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 6 Sep 2023 14:01:47 +1200 Subject: [PATCH] asp5033: fix K value As QioTek told me via email. Signed-off-by: Julian Oes --- src/drivers/differential_pressure/asp5033/ASP5033.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/differential_pressure/asp5033/ASP5033.cpp b/src/drivers/differential_pressure/asp5033/ASP5033.cpp index 33f5d0e075..9a3a263bbd 100644 --- a/src/drivers/differential_pressure/asp5033/ASP5033.cpp +++ b/src/drivers/differential_pressure/asp5033/ASP5033.cpp @@ -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++;