aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-01-14 17:25:57 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-01-14 17:25:57 +0100
commita1cc9912e6dc80d1152e4c1eef9d00b6c2f215a1 (patch)
tree4c9b18e867b7ffc945cdcbfd0ff14458b62ae372 /src/bin
parent320245d45f2de4c5aa0e0f969505d8f38ebb686c (diff)
downloadcats-radio-node-a1cc9912e6dc80d1152e4c1eef9d00b6c2f215a1.tar.gz
cats-radio-node-a1cc9912e6dc80d1152e4c1eef9d00b6c2f215a1.tar.bz2
cats-radio-node-a1cc9912e6dc80d1152e4c1eef9d00b6c2f215a1.zip
Dump packet on receive error
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/fake-radio.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/fake-radio.rs b/src/bin/fake-radio.rs
index b7daf67..6747937 100644
--- a/src/bin/fake-radio.rs
+++ b/src/bin/fake-radio.rs
@@ -14,7 +14,7 @@ fn build_example_packet(comment: &str) -> anyhow::Result<Vec<u8>> {
let mut buf = [0; MAX_PACKET_LEN];
let mut pkt = ham_cats::packet::Packet::new(&mut buf);
pkt.add_identification(
- Identification::new(&callsign, ssid, icon)
+ Identification::new(callsign, ssid, icon)
.context("Invalid identification")?,
)
.map_err(|e| anyhow!("Could not add identification to packet: {e}"))?;