From 4df398a74953aa0d2a8b6dd5b024ea1dd08c1e19 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Thu, 30 Nov 2023 13:30:15 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/flrig.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/flrig.rs b/src/flrig.rs index 1f9b73b..28fdea4 100644 --- a/src/flrig.rs +++ b/src/flrig.rs @@ -12,9 +12,9 @@ pub fn get_radio_data(fl_host: &str, fl_port: &str) -> Result let client = reqwest::Client::new(); - let freq = get_value_from_flrig(fl_host, fl_port, &client, &cmd_freq).unwrap(); - let mode = get_value_from_flrig(fl_host, fl_port, &client, &cmd_mode).unwrap(); - let power = get_value_from_flrig(fl_host, fl_port, &client, &cmd_power).unwrap(); + let freq = get_value_from_flrig(fl_host, fl_port, &client, &cmd_freq)?; + let mode = get_value_from_flrig(fl_host, fl_port, &client, &cmd_mode)?; + let power = get_value_from_flrig(fl_host, fl_port, &client, &cmd_power)?; let freq = parse_xml(&freq); let mode = parse_xml(&mode);