openbci-archive / OpenBCI_NodeJS

Node.js SDK for the all OpenBCI Biosensor Boards
https://www.npmjs.com/package/openbci
137 stars 52 forks source link

Sample rate does not return correct sample rate for custom rate on simulator #58

Closed andrewjaykeller closed 8 years ago

andrewjaykeller commented 8 years ago
   OpenBCIBoard.prototype.sampleRate = function() {
        if(this.options.boardType === k.OBCIBoardDaisy) {
            return k.OBCISampleRate125;
        } else {
            return k.OBCISampleRate250;
        }
    };

If simulator is using custom sample rate this method should return it.

andrewjaykeller commented 8 years ago

This is addressed in #60