Skip to content
Snippets Groups Projects
Commit 6d66e725 authored by Stephen D's avatar Stephen D
Browse files

small routing to the internet fix

parent 389a7e73
No related branches found
No related tags found
No related merge requests found
Pipeline #3844 passed
......@@ -153,6 +153,7 @@ pub fn append_internet_to_packet_route(
if let Some((rc, rs)) = first_future {
if rc == callsign && rs == ssid {
// we can just do the normal thing
// since we're replacing the existing future node, this should never fail, unless we run out of byte space
route.append_node(callsign, ssid, Some(rssi)).ok()?;
} else {
// rip off all the futures and add ourselves
......@@ -174,7 +175,7 @@ pub fn append_internet_to_packet_route(
route.push_callsign(RouteIdentity::new(callsign, ssid, Some(rssi), false));
}
} else {
route.append_node(callsign, ssid, Some(rssi)).ok()?;
route.push_callsign(RouteIdentity::new(callsign, ssid, Some(rssi), false))?;
}
route.push_internet()?;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment