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');
11391139
11401140Emitted when the serial connection to the board is closed.
11411141
1142- #### <a name="event-close "></a> .on('droppedPacket', callback)
1142+ #### <a name="event-dropped-packet "></a> .on('droppedPacket', callback)
11431143
11441144Emitted when a packet (or packets) are dropped. Returns an array.
11451145
@@ -1171,7 +1171,7 @@ Emitted when the board is in a ready to start streaming state.
11711171
11721172Emitted when there is a new sample available.
11731173
1174- #### <a name="event-sample "></a> .on('synced', callback)
1174+ #### <a name="event-synced "></a> .on('synced', callback)
11751175
11761176Emitted when there is a new sample available.
11771177
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+
17# 2.0.0
28
39### New Features
Original file line number Diff line number Diff line change @@ -553,7 +553,7 @@ Cyton.prototype.write = function (dataToWrite) {
553553 * @author AJ Keller (@pushtheworldllc)
554554 */
555555Cyton . prototype . _writeAndDrain = function ( data ) {
556- obciDebug . debugBytes ( '>>>' , data ) ;
556+ if ( this . options . debug ) obciDebug . debugBytes ( '>>>' , data ) ;
557557
558558 return new Promise ( ( resolve , reject ) => {
559559 if ( ! this . isConnected ( ) ) return reject ( Error ( 'Serial port not open' ) ) ;
@@ -1772,7 +1772,7 @@ Cyton.prototype.syncClocksFull = function () {
17721772 * @author AJ Keller (@pushtheworldllc)
17731773 */
17741774Cyton . prototype . _processBytes = function ( data ) {
1775- obciDebug . debugBytes ( this . curParsingMode + '<<' , data ) ;
1775+ if ( this . options . debug ) obciDebug . debugBytes ( this . curParsingMode + '<<' , data ) ;
17761776
17771777 // Concat old buffer
17781778 var oldDataBuffer = null ;
Original file line number Diff line number Diff line change 11{
22 "name" : " openbci" ,
3- "version" : " 2.0.0 " ,
3+ "version" : " 2.0.1 " ,
44 "description" : " The official Node.js SDK for the OpenBCI Biosensor Board." ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments