From a1cc9912e6dc80d1152e4c1eef9d00b6c2f215a1 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 14 Jan 2024 17:25:57 +0100 Subject: Dump packet on receive error --- src/bin/fake-radio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bin') 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> { 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}"))?; -- cgit v1.2.3