Skip to content

Commit 8e49441

Browse files
author
AJ Keller
authored
Merge pull request #2 from aj-ptw/master
v0.0.4
2 parents 16d276b + fa1ce1f commit 8e49441

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

changelog.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 0.0.4
2+
3+
### Bug Fixes
4+
5+
* Fix bug where samples were not properly being extracted
6+
17
# 0.0.2
28

39
### Breaking Changes

openBCIUtilities.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var utilitiesModule = {
1818

1919
/**
2020
* @typedef {Object} ProcessedBuffer
21-
* @property {Buffer} buffer The remaining buffer. Can be null.
21+
* @property {Buffer|SafeBuffer|Buffer2} buffer The remaining buffer. Can be null.
2222
* @property {Array} rawDataPackets The extracted raw data packets
2323
*/
2424
/**
@@ -885,6 +885,7 @@ function newSyncObject () {
885885
* @param o.accelArray {Array} (optional) for non time stamp use cases
886886
* @param o.verbose {Boolean} (optional) for verbose output
887887
* @param o.scale {Boolean} (optional) Default `true`. A gain of 24 for Cyton will be used and 51 for ganglion by default.
888+
* @return {Array} samples An array of {Sample}
888889
* @author AJ Keller (@pushtheworldllc)
889890
*/
890891
function transformRawDataPacketsToSample (o) {
@@ -930,7 +931,7 @@ function transformRawDataPacketsToSample (o) {
930931
// Don't do anything if the packet is not defined
931932
break;
932933
}
933-
sample.push(sample);
934+
samples.push(sample);
934935
} catch (err) {
935936
samples.push({
936937
rawDataPacket

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openbci-utilities",
3-
"version": "0.0.2",
3+
"version": "0.0.4",
44
"description": "The official utility package of Node.js SDK for the OpenBCI Biosensor Boards.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)