Skip to content

Commit

Permalink
feat(longrange): fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jtbraun committed Nov 15, 2023
1 parent e8c3134 commit 6e52505
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/core/src/capabilities/NodeInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,11 +401,13 @@ export function parseNodeInformationFrame(
buffer: Buffer,
isLongRange: boolean = false,
): NodeInformationFrame {
let { info, bytesRead: offset } = parseNodeProtocolInfoAndDeviceClass(
const result = parseNodeProtocolInfoAndDeviceClass(
buffer,
isLongRange,
);
var ccListLength;
const info = result.info;
let offset = result.bytesRead;
let ccListLength;
if (isLongRange) {
ccListLength = buffer[offset];
offset += 1;
Expand All @@ -428,7 +430,7 @@ export function encodeNodeInformationFrame(
const protocolInfo = encodeNodeProtocolInfoAndDeviceClass(info, isLongRange);
const ccList = encodeCCList(info.supportedCCs, []);

var buffers = [protocolInfo]
const buffers = [protocolInfo]
if (isLongRange) {
const ccListLength = Buffer.allocUnsafe(1);
ccListLength[0] = ccList.length;
Expand Down

0 comments on commit 6e52505

Please sign in to comment.