From a654cf513fa6a426510224c0f9f608f51b9c2493 Mon Sep 17 00:00:00 2001 From: Stephen D <webmaster@scd31.com> Date: Fri, 23 Feb 2024 21:37:07 -0400 Subject: [PATCH] remove unneeded setting --- config.example.toml | 1 - src/config.rs | 2 -- src/gate.rs | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/config.example.toml b/config.example.toml index a662c67..fe18658 100644 --- a/config.example.toml +++ b/config.example.toml @@ -23,7 +23,6 @@ ssid = 0 [felinet.beacon] period_seconds = 120 icon = 0 -max_hops = 3 latitude = 45.0 longitude = -66.0 altitude = 30 # meters diff --git a/src/config.rs b/src/config.rs index 7c4a853..b411dd3 100644 --- a/src/config.rs +++ b/src/config.rs @@ -14,8 +14,6 @@ pub struct BeaconConfig { #[serde_as(as = "DurationSeconds<u64>")] pub period_seconds: Duration, pub icon: u16, - #[serde(default)] - pub max_hops: u8, pub latitude: Option<f64>, pub longitude: Option<f64>, pub altitude: Option<f64>, diff --git a/src/gate.rs b/src/gate.rs index 5d4979e..3395b51 100644 --- a/src/gate.rs +++ b/src/gate.rs @@ -80,7 +80,7 @@ pub fn beacon_forever( .add_node_info(info_builder.build()) .map_err(|e| anyhow!("Could not add info to beacon packet: {e}"))?; - let mut r = Route::new(c.beacon.max_hops); + let mut r = Route::new(0); r.push_internet().context("Could not create beacon route")?; packet .add_route(r) -- GitLab