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
+
1
7
# 0.2.1
2
8
3
9
### Bug Fixes
Original file line number Diff line number Diff line change @@ -126,9 +126,9 @@ let utilitiesModule = {
126
126
let sampleNumbers = [ 0 , 0 , 0 ] ;
127
127
sampleNumbers [ 0 ] = dataBuffer [ 1 ] ;
128
128
sampleNumbers [ 1 ] = sampleNumbers [ 0 ] + 1 ;
129
- if ( sampleNumbers [ 1 ] > 255 ) sampleNumbers [ 1 ] -= 255 ;
129
+ if ( sampleNumbers [ 1 ] > 255 ) sampleNumbers [ 1 ] -= 256 ;
130
130
sampleNumbers [ 2 ] = sampleNumbers [ 1 ] + 1 ;
131
- if ( sampleNumbers [ 2 ] > 255 ) sampleNumbers [ 2 ] -= 255 ;
131
+ if ( sampleNumbers [ 2 ] > 255 ) sampleNumbers [ 2 ] -= 256 ;
132
132
for ( let i = 0 ; i < k . OBCICytonBLESamplesPerPacket ; i ++ ) {
133
133
let rawDataPacket = Buffer . alloc ( k . OBCIPacketSize ) ;
134
134
rawDataPacket [ 0 ] = k . OBCIByteStart ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " openbci-utilities" ,
3
- "version" : " 0.2.1 " ,
3
+ "version" : " 0.2.2 " ,
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