Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bma180_driver/src/bma180.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down