Skip to content

Commit c732770

Browse files
committed
FIX: failing test due to incorrect buffer type
1 parent 1915f16 commit c732770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openBCIWifi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Wifi.prototype.bufferRawDataPackets = function (rawDataPackets) {
175175
_.forEach(rawDataPackets, (newRDP) => {
176176
let found = false;
177177
_.forEach(this.internalRawDataPackets, (oldRDP) => {
178-
if (!found && bufferEqual(newRDP, oldRDP)) {
178+
if (!found && bufferEqual(new Buffer(newRDP), new Buffer(oldRDP))) {
179179
out.push(oldRDP);
180180
found = true;
181181
}

0 commit comments

Comments
 (0)