Comparar commits

...

2 Commits

Autor SHA1 Mensagem Data
AJ Keller 18b137b498 Merge pull request #85 from aj-ptw/fix-constants-constructor
Fix constants not set in constructor
2016-09-29 14:52:50 -04:00
AJ Keller 470ee81928 Fix constants not set in constructor 2016-09-29 14:44:59 -04:00
3 arquivos alterados com 11 adições e 0 exclusões
+6
Ver Arquivo
@@ -1,3 +1,9 @@
# 1.3.1
### Bug Fixes
* Fixed bug where `connected` and `streaming` were not set in constructor
# 1.3.0
### New Features
+3
Ver Arquivo
@@ -145,6 +145,9 @@ function OpenBCIFactory() {
this.accelArray = [0,0,0]; // X, Y, Z
this.channelSettingsArray = k.channelSettingsArrayInit(k.numberOfChannelsForBoardType(this.options.boardType));
this.writeOutArray = new Array(100);
// Booleans
this.connected = false;
this.streaming = false;
// Buffers
this.buffer = null;
this.masterBuffer = masterBufferMaker();
+2
Ver Arquivo
@@ -82,6 +82,8 @@ describe('openbci-sdk',function() {
expect(board.options.verbose).to.be.false;
expect(board.sampleRate()).to.equal(250);
expect(board.numberOfChannels()).to.equal(8);
expect(board.connected).to.be.false;
expect(board.streaming).to.be.false;
});
it('should be able to set ganglion mode', () => {
var board = new openBCIBoard.OpenBCIBoard({