Skip to content

Commit ace0eec

Browse files
committed
Fix formatting issues in parseRxPacketMetadata function for improved readability
1 parent 41e7003 commit ace0eec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

content/wardrive.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,7 @@ function parseRxPacketMetadata(data) {
18571857
const pathLength = data.raw[1];
18581858

18591859
// Extract raw path bytes: raw[2] through raw[2 + pathLength - 1]
1860-
const pathBytes = Array.from(data.raw.slice(2, 2 + pathLength));
1860+
const pathBytes = Array.from(data.raw. slice(2, 2 + pathLength));
18611861

18621862
// Derive first hop (for TX repeater ID): pathBytes[0]
18631863
const firstHop = pathBytes. length > 0 ? pathBytes[0] : null;
@@ -1871,9 +1871,9 @@ function parseRxPacketMetadata(data) {
18711871
debugLog(`[RX PARSE] Parsed metadata: header=0x${header.toString(16).padStart(2, '0')}, pathLength=${pathLength}, firstHop=${firstHop ? '0x' + firstHop. toString(16).padStart(2, '0') : 'null'}, lastHop=${lastHop ? '0x' + lastHop.toString(16).padStart(2, '0') : 'null'}`);
18721872

18731873
return {
1874-
raw: data. raw, // Full raw packet bytes
1874+
raw: data.raw, // Full raw packet bytes
18751875
header: header, // Header byte
1876-
pathLength: pathLength, // Number of hops
1876+
pathLength: pathLength, // Number of hops
18771877
pathBytes: pathBytes, // Raw path bytes array
18781878
firstHop: firstHop, // First hop ID (TX)
18791879
lastHop: lastHop, // Last hop ID (RX)

0 commit comments

Comments
 (0)