Skip to content

Commit abf14e0

Browse files
authored
Update LPS28DFW to use extreme range of 260-4060hPa
param mode true for FS_MODE=1 (1/2048 hPa/LSB), false for FS_MODE=0 (1/4096 hPa/LSB)
1 parent 929eb9a commit abf14e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_LPS28DFW.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ class WipperSnapper_I2C_Driver_LPS28DFW : public WipperSnapper_I2C_Driver {
7171
WS_DEBUG_PRINTLN("Failed to set averaging");
7272
return false;
7373
}
74+
if (!_lps28->setFullScaleMode(false)) {
75+
WS_DEBUG_PRINTLN("Failed to set 4060hPa max mode");
76+
return false;
77+
}
7478

7579
return true;
7680
}

0 commit comments

Comments
 (0)