File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1+ # 0.2.2
2+
3+ ### Bug Fixes
4+
5+ * Fix wrap around bug in extractRawBLEDataPackets
6+
17# 0.2.1
28
39### Bug Fixes
Original file line number Diff line number Diff line change @@ -126,9 +126,9 @@ let utilitiesModule = {
126126 let sampleNumbers = [ 0 , 0 , 0 ] ;
127127 sampleNumbers [ 0 ] = dataBuffer [ 1 ] ;
128128 sampleNumbers [ 1 ] = sampleNumbers [ 0 ] + 1 ;
129- if ( sampleNumbers [ 1 ] > 255 ) sampleNumbers [ 1 ] -= 255 ;
129+ if ( sampleNumbers [ 1 ] > 255 ) sampleNumbers [ 1 ] -= 256 ;
130130 sampleNumbers [ 2 ] = sampleNumbers [ 1 ] + 1 ;
131- if ( sampleNumbers [ 2 ] > 255 ) sampleNumbers [ 2 ] -= 255 ;
131+ if ( sampleNumbers [ 2 ] > 255 ) sampleNumbers [ 2 ] -= 256 ;
132132 for ( let i = 0 ; i < k . OBCICytonBLESamplesPerPacket ; i ++ ) {
133133 let rawDataPacket = Buffer . alloc ( k . OBCIPacketSize ) ;
134134 rawDataPacket [ 0 ] = k . OBCIByteStart ;
Original file line number Diff line number Diff line change 11{
22 "name" : " openbci-utilities" ,
3- "version" : " 0.2.1 " ,
3+ "version" : " 0.2.2 " ,
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