From ade2794a330dc999d56676ca16e47d9056c490e9 Mon Sep 17 00:00:00 2001 From: poofjunior Date: Fri, 20 Jun 2014 15:27:10 -0700 Subject: [PATCH] setAccelerationRange actually works now. No false-positives. --- bma180_driver/src/bma180.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bma180_driver/src/bma180.cpp b/bma180_driver/src/bma180.cpp index c1d95c6..fff5e04 100644 --- a/bma180_driver/src/bma180.cpp +++ b/bma180_driver/src/bma180.cpp @@ -1074,6 +1074,9 @@ bool BMA180::EnableWriting() bool BMA180::setAccelerationRange(accel_range measurement_range ) { uint8_t local_range; + + /// Update data member + accel_range_ = measurement_range; // read current accel range register value for a local copy. if( this->readReg( ADDRESS_OFFSET_LSB1, &local_range ) == false )