Skip to content

Commit

Permalink
Merge pull request #69 from PunchThrough/develop
Browse files Browse the repository at this point in the history
Release Candidate: 2.0.1
  • Loading branch information
Stephen Stack authored Nov 14, 2016
2 parents ef09e69 + eec1ca6 commit b3b26e0
Show file tree
Hide file tree
Showing 28 changed files with 3,237 additions and 22 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "hardware/bean/avr/cores/bean/applicationMessageHeaders"]
path = hardware/bean/avr/cores/bean/applicationMessageHeaders
url = https://bitbucket.org/punchthroughdesign/bean-application-message-definitions.git
[submodule "hardware/bean/avr/libraries/PinChangeInt"]
path = hardware/bean/avr/libraries/PinChangeInt
url = https://github.com/PunchThrough/PinChangeInt.git
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 2.0.1

### Features

* New macro `#IS_BEAN` - `0` for Bean+ and `1` for Bean

### Fixes

* Fixed typo `ObserverAdvertisementInfo`
* Fixed PlatformIO tests on Circle

### Other

* Removed PinChangeInt submodule, added as direct dependency
* New PlatformIO test that includes builtin libraries

---

# 2.0.0

### Documentation

* Vastly improve Doxygen code coverage. Used for doc generation at punchthrough.com/bean/reference.

### Other

* Build scripts and examples

---

# < 2.0.0

See git history.
5 changes: 3 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@ dependencies:
cache_directories:
- ~/.platformio
override:
- pip install --upgrade pip setuptools virtualenv
- pip install cpplint
# Used for deployment
- sudo apt-get update
- sudo apt-get install doxygen
- npm install
# Don't install PlatformIO if it's already been set up; it takes forever
#- if [ ! -f "~/.platformio/appstate.json" ]; then scripts/setup_platformio.sh; fi
- if [ ! -f "~/.platformio/appstate.json" ]; then scripts/setup_platformio.sh; fi

test:
override:
- scripts/lint_all.py --lint
#- scripts/compile_all.py
- scripts/compile_all.py
post:
- make docs
- cp -R docs $CIRCLE_ARTIFACTS
Expand Down
2 changes: 1 addition & 1 deletion examples/observer/observer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ uint8_t expectedPacket[] = {
void loop() {
uint32_t start = millis();

ObseverAdvertisementInfo info;
ObserverAdvertisementInfo info;
int res = Bean.getObserverMessage(&info, 2000);
if (res == 1) {
Serial.print(info.eventType);
Expand Down
2 changes: 1 addition & 1 deletion hardware/bean/avr/cores/bean/Bean.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ void BeanClass::setCustomAdvertisement(uint8_t *buf, int len) {
Serial.setCustomAdvertisement(buf, len);
}

int BeanClass::getObserverMessage(ObseverAdvertisementInfo *message,
int BeanClass::getObserverMessage(ObserverAdvertisementInfo *message,
unsigned long timeout) {
return Serial.getObserverMessage(message, timeout);
}
Expand Down
4 changes: 2 additions & 2 deletions hardware/bean/avr/cores/bean/Bean.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ typedef ADV_SWITCH_ENABLED_T BluetoothServices;
/**
* Data returned by the observer role.
*/
typedef OBSERVER_INFO_MESSAGE_T ObseverAdvertisementInfo;
typedef OBSERVER_INFO_MESSAGE_T ObserverAdvertisementInfo;

class BeanClass {
public:
Expand Down Expand Up @@ -332,7 +332,7 @@ class BeanClass {
*
* @include observer/observer.ino
*/
int getObserverMessage(ObseverAdvertisementInfo *message, unsigned long timeout);
int getObserverMessage(ObserverAdvertisementInfo *message, unsigned long timeout);
///@}


Expand Down
1 change: 0 additions & 1 deletion hardware/bean/avr/libraries/PinChangeInt
Submodule PinChangeInt deleted from ec745f
Loading

0 comments on commit b3b26e0

Please sign in to comment.