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;