File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1+ # 0.0.3
2+
3+ ### Bug Fixes
4+
5+ * Fix bug where samples were not properly being extracted
6+
17# 0.0.2
28
39### Breaking Changes
Original file line number Diff line number Diff 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 */
890891function 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
Original file line number Diff line number Diff line change 11{
22 "name" : " openbci-utilities" ,
3- "version" : " 0.0.2 " ,
3+ "version" : " 0.0.3 " ,
44 "description" : " The official utility package of Node.js SDK for the OpenBCI Biosensor Boards." ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments