File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change
1
+ # 0.0.4
2
+
3
+ ### Bug Fixes
4
+
5
+ * Fix bug where samples were not properly being extracted
6
+
1
7
# 0.0.2
2
8
3
9
### Breaking Changes
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ var utilitiesModule = {
18
18
19
19
/**
20
20
* @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.
22
22
* @property {Array } rawDataPackets The extracted raw data packets
23
23
*/
24
24
/**
@@ -885,6 +885,7 @@ function newSyncObject () {
885
885
* @param o.accelArray {Array} (optional) for non time stamp use cases
886
886
* @param o.verbose {Boolean} (optional) for verbose output
887
887
* @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}
888
889
* @author AJ Keller (@pushtheworldllc)
889
890
*/
890
891
function transformRawDataPacketsToSample ( o ) {
@@ -930,7 +931,7 @@ function transformRawDataPacketsToSample (o) {
930
931
// Don't do anything if the packet is not defined
931
932
break ;
932
933
}
933
- sample . push ( sample ) ;
934
+ samples . push ( sample ) ;
934
935
} catch ( err ) {
935
936
samples . push ( {
936
937
rawDataPacket
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " openbci-utilities" ,
3
- "version" : " 0.0.2 " ,
3
+ "version" : " 0.0.4 " ,
4
4
"description" : " The official utility package of Node.js SDK for the OpenBCI Biosensor Boards." ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments