From 71f8c62972030a6b38b77b8e11a93cfea12c9e10 Mon Sep 17 00:00:00 2001 From: Will Hilton Date: Fri, 31 Jan 2014 16:50:43 -0500 Subject: [PATCH] Fixed 'mask2' in setDataStreaming. --- lib/commands/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/api.js b/lib/commands/api.js index 259e4d9..04a9ff3 100644 --- a/lib/commands/api.js +++ b/lib/commands/api.js @@ -108,7 +108,7 @@ exports.setDataStreaming = function(sensorRateDivisor, frames, mask, packetCount packet.DATA.writeUInt32BE(mask, 4); packet.DATA.writeUInt8(packetCount, 8); if (mask2) { - packet.DATA.writeUInt32BE(sensorRateDivisor, 9); + packet.DATA.writeUInt32BE(mask2, 9); } var result = packetBuilder(packet); return result;