From 0116cd38ac7c8e13068eccbf2faa64e34a9f82b5 Mon Sep 17 00:00:00 2001 From: you Date: Sun, 22 Mar 2026 08:19:21 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20replay=20missing=20raw=5Fhex=20=E2=80=94?= =?UTF-8?q?=20no=20rain=20on=20replayed=20packets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replay button builds packets without raw/raw_hex field. Now includes raw: o.raw_hex || pkt.raw_hex for both single and multi-observation replays. --- public/index.html | 4 ++-- public/packets.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index 18ba973..1aa1338 100644 --- a/public/index.html +++ b/public/index.html @@ -84,13 +84,13 @@ - + - + diff --git a/public/packets.js b/public/packets.js index bfeb915..3390c09 100644 --- a/public/packets.js +++ b/public/packets.js @@ -1202,7 +1202,7 @@ let oDec; try { oDec = JSON.parse(o.decoded_json || '{}'); } catch { oDec = decoded; } replayPackets.push({ - id: o.id, hash: pkt.hash, + id: o.id, hash: pkt.hash, raw: o.raw_hex || pkt.raw_hex, _ts: new Date(o.timestamp).getTime(), decoded: { header: { payloadTypeName: typeName }, payload: oDec, path: { hops: oPath } }, snr: o.snr, rssi: o.rssi, observer: obsName(o.observer_id) @@ -1210,7 +1210,7 @@ } } else { replayPackets.push({ - id: pkt.id, hash: pkt.hash, + id: pkt.id, hash: pkt.hash, raw: pkt.raw_hex, _ts: new Date(pkt.timestamp).getTime(), decoded: { header: { payloadTypeName: typeName }, payload: decoded, path: { hops: pathHops } }, snr: pkt.snr, rssi: pkt.rssi, observer: obsName(pkt.observer_id)