Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setAccelerationRange actually works now. No false-positives. #37

Open
wants to merge 1 commit into
base: bma180
Choose a base branch
from
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