From 3c0ce721f25e3210603cfd7ee682ac2563f97604 Mon Sep 17 00:00:00 2001 From: Jacob Dahl Date: Fri, 9 Oct 2020 14:23:13 -0800 Subject: [PATCH] fixed dps310 calibration coeffecient for c11 --- src/drivers/barometer/dps310/DPS310.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/barometer/dps310/DPS310.cpp b/src/drivers/barometer/dps310/DPS310.cpp index 7e1b66a89926..3aba3feb0bc0 100644 --- a/src/drivers/barometer/dps310/DPS310.cpp +++ b/src/drivers/barometer/dps310/DPS310.cpp @@ -135,7 +135,7 @@ DPS310::reset() getTwosComplement(_calibration.c01, 16); // 0x1A c11 [15:8] + 0x1B c11 [7:0] - _calibration.c11 = ((uint32_t)coef[8] << 8) | (uint32_t)coef[9]; + _calibration.c11 = ((uint32_t)coef[10] << 8) | (uint32_t)coef[11]; getTwosComplement(_calibration.c11, 16); // 0x1C c20 [15:8] + 0x1D c20 [7:0]