mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Switch BMP085 mode to 0 for ULTRALOWPOWER
This commit is contained in:
parent
ac15131296
commit
4cfbd3bad5
1 changed files with 3 additions and 6 deletions
|
|
@ -312,12 +312,9 @@ bool EnvironmentSensorManager::begin() {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENV_INCLUDE_BMP085
|
#if ENV_INCLUDE_BMP085
|
||||||
// first arg is MODE
|
// First argument is MODE (aka oversampling)
|
||||||
// 0: ULTRALOWPOWER
|
// choose ULTRALOWPOWER
|
||||||
// 1: STANDARD
|
if (BMP085.begin(0, TELEM_WIRE)) {
|
||||||
// 2: HIGHRES
|
|
||||||
// 3: ULTRAHIGHRES
|
|
||||||
if (BMP085.begin(1, TELEM_WIRE)) {
|
|
||||||
MESH_DEBUG_PRINTLN("Found sensor BMP085");
|
MESH_DEBUG_PRINTLN("Found sensor BMP085");
|
||||||
BMP085_initialized = true;
|
BMP085_initialized = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue