Skip to content

Commit

Permalink
Merge pull request #74 from PunchThrough/acceleration_range
Browse files Browse the repository at this point in the history
Acceleration range
  • Loading branch information
Stephen Stack authored Apr 5, 2017
2 parents ca9cdf2 + abeb202 commit f8cd9c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hardware/bean/avr/cores/bean/Bean.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,12 @@ void BeanClass::enableWakeOnAccelerometer(uint8_t sources) {

uint8_t BeanClass::getAccelerationRange(void) {
uint8_t value;
Serial.accelRegisterRead(REG_G_SETTING, 1, &value);
Serial.accelRangeRead(&value);
return value;
}

void BeanClass::setAccelerationRange(uint8_t range) {
Serial.accelRegisterWrite(REG_G_SETTING, range);
Serial.accelRangeSet(range);
}

int16_t BeanClass::getAccelerationX(void) {
Expand Down

0 comments on commit f8cd9c2

Please sign in to comment.