Skip to content

Commit 4f763b3

Browse files
author
AJ Keller
committed
FIX: syncChannelSettingsWithRawData to completely remove need for major firmware version
1 parent ac4d6f9 commit 4f763b3

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 0.1.4
2+
3+
### Bug Fixes
4+
5+
* E-patch on new function added 0.1.3
6+
7+
18
# 0.1.3
29

310
### New Features

openBCIUtilities.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ function setChSetFromADSRegisterQuery (str, channelSettings) {
13541354
*/
13551355
function syncChannelSettingsWithRawData (o) {
13561356
// Check to make sure data is not null.
1357-
if (k.isUndefined(o) || k.isUndefined(o.channelSettings) || k.isNull(o.channelSettings) || k.isUndefined(o.data) || k.isNull(o.data) || k.isUndefined(o.majorFirmwareVersion) || k.isNull(o.majorFirmwareVersion)) throw new Error(k.OBCIErrorUndefinedOrNullInput);
1357+
if (k.isUndefined(o) || k.isUndefined(o.channelSettings) || k.isNull(o.channelSettings) || k.isUndefined(o.data) || k.isNull(o.data)) throw new Error(k.OBCIErrorUndefinedOrNullInput);
13581358
// Check to make sure channel settings is array
13591359
if (!Array.isArray(o.channelSettings)) throw new Error(`${k.OBCIErrorInvalidType} channelSettings`);
13601360
// Check to make sure the rawDataPacket buffer is the right size.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openbci-utilities",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "The official utility package of Node.js SDK for the OpenBCI Biosensor Boards.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)