File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -1139,7 +1139,7 @@ ourBoard.write('o');
1139
1139
1140
1140
Emitted when the serial connection to the board is closed.
1141
1141
1142
- #### <a name="event-close "></a> .on('droppedPacket', callback)
1142
+ #### <a name="event-dropped-packet "></a> .on('droppedPacket', callback)
1143
1143
1144
1144
Emitted when a packet (or packets) are dropped. Returns an array.
1145
1145
@@ -1171,7 +1171,7 @@ Emitted when the board is in a ready to start streaming state.
1171
1171
1172
1172
Emitted when there is a new sample available.
1173
1173
1174
- #### <a name="event-sample "></a> .on('synced', callback)
1174
+ #### <a name="event-synced "></a> .on('synced', callback)
1175
1175
1176
1176
Emitted when there is a new sample available.
1177
1177
Original file line number Diff line number Diff line change
1
+ # 2.0.1
2
+
3
+ ### Bug Fixes
4
+
5
+ * Debug bytes was set to always print in processBytes
6
+
1
7
# 2.0.0
2
8
3
9
### New Features
Original file line number Diff line number Diff line change @@ -553,7 +553,7 @@ Cyton.prototype.write = function (dataToWrite) {
553
553
* @author AJ Keller (@pushtheworldllc)
554
554
*/
555
555
Cyton . prototype . _writeAndDrain = function ( data ) {
556
- obciDebug . debugBytes ( '>>>' , data ) ;
556
+ if ( this . options . debug ) obciDebug . debugBytes ( '>>>' , data ) ;
557
557
558
558
return new Promise ( ( resolve , reject ) => {
559
559
if ( ! this . isConnected ( ) ) return reject ( Error ( 'Serial port not open' ) ) ;
@@ -1772,7 +1772,7 @@ Cyton.prototype.syncClocksFull = function () {
1772
1772
* @author AJ Keller (@pushtheworldllc)
1773
1773
*/
1774
1774
Cyton . prototype . _processBytes = function ( data ) {
1775
- obciDebug . debugBytes ( this . curParsingMode + '<<' , data ) ;
1775
+ if ( this . options . debug ) obciDebug . debugBytes ( this . curParsingMode + '<<' , data ) ;
1776
1776
1777
1777
// Concat old buffer
1778
1778
var oldDataBuffer = null ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " openbci" ,
3
- "version" : " 2.0.0 " ,
3
+ "version" : " 2.0.1 " ,
4
4
"description" : " The official Node.js SDK for the OpenBCI Biosensor Board." ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments