Skip to content

Commit

Permalink
Merge pull request #79 from PunchThrough/develop
Browse files Browse the repository at this point in the history
Release v2.0.3
  • Loading branch information
Stephen Stack authored Apr 5, 2017
2 parents 66918d1 + 457297d commit 39f2ed9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2.0.3

### Fixes

* Fix `getAccelerationRange`

# 2.0.2

### Fixes
Expand Down
4 changes: 2 additions & 2 deletions hardware/bean/avr/boards.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bean.name=LightBlue Bean (2.0.0)
bean.name=LightBlue Bean (2.0.3)
bean.upload.tool=beanupload
bean.upload.protocol=ptdble
bean.upload.maximum_size=32256
Expand All @@ -11,7 +11,7 @@ bean.build.variant=bean
bean.build.bean_variant=1
bean.build.board=AVR_UNO

beanplus.name=LightBlue Bean+ (2.0.0)
beanplus.name=LightBlue Bean+ (2.0.3)
beanplus.upload.tool=beanupload
beanplus.upload.protocol=ptdble
beanplus.upload.maximum_size=32256
Expand Down
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 39f2ed9

Please sign in to comment.