Skip to content

Commit

Permalink
FIX: Massive bug where message data could be corupted
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ Keller committed Aug 27, 2017
1 parent 526b3db commit cd3c372
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions OpenBCI_Wifi_Master.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ void OpenBCI_Wifi_Master_Class::sendStringLast(const char *str) {
for (int i = 0; i < len; i++) {
storeByteBufTx(str[i]);
}
storeByteBufTx('\0');
flushBufferTx();
bufferTxClear();
}
Expand Down Expand Up @@ -361,6 +362,7 @@ void OpenBCI_Wifi_Master_Class::sendStringMulti(const char *str) {
for (int i = 0; i < len; i++) {
storeByteBufTx(str[i]);
}
storeByteBufTx('\0');
flushBufferTx();
bufferTxClear();
}
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

* Add `sendStringMulti(char)`

## Release Candidate 3

### Breaking Changes

* String messages are now sent with `\0` which really really helped the conversion to clean strings on the wifi shield!

## Release Candidate 1

First releases
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=OpenBCI_Wifi_Master
version=1.0.0-rc2
version=1.0.0
author=AJ Keller <[email protected]>
maintainer=AJ Keller <[email protected]>
sentence=The library for controlling Push The World - OpenBCI Wifi Shield
Expand Down

0 comments on commit cd3c372

Please sign in to comment.