mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-01-07 19:45:43 -05:00
Cleanup
This commit is contained in:
parent
344ff21c1e
commit
ef64fefa96
2 changed files with 5 additions and 7 deletions
|
|
@ -289,11 +289,9 @@ class Packet:
|
|||
self.destination.tx += 1
|
||||
self.destination.txbytes += len(self.data)
|
||||
|
||||
if not self.packed:
|
||||
self.pack()
|
||||
if not self.packed: self.pack()
|
||||
|
||||
if RNS.Transport.outbound(self):
|
||||
return self.receipt
|
||||
if RNS.Transport.outbound(self): return self.receipt
|
||||
else:
|
||||
RNS.log("No interfaces could process the outbound packet", RNS.LOG_ERROR)
|
||||
self.sent = False
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ def program_setup(configdir, dispall=False, verbosity=0, name_filter=None, json=
|
|||
location = f"{lat}, {lon}{height}"
|
||||
else: location = "Unknown"
|
||||
|
||||
|
||||
|
||||
if idx > 0: print("\n"+"="*32+"\n")
|
||||
print(f"Name : {name}")
|
||||
print(f"Type : {if_type}")
|
||||
|
|
@ -225,7 +225,7 @@ def program_setup(configdir, dispall=False, verbosity=0, name_filter=None, json=
|
|||
print(f"Discovered : {discovered_display}")
|
||||
print(f"Last Heard : {last_heard_display}")
|
||||
print(f"Location : {location}")
|
||||
|
||||
|
||||
if "frequency" in i: print(f"Frequency : {i['frequency']:,} Hz")
|
||||
if "bandwidth" in i: print(f"Bandwidth : {i['bandwidth']:,} Hz")
|
||||
if "sf" in i: print(f"Sprd.Factor : {i['sf']}")
|
||||
|
|
@ -234,7 +234,7 @@ def program_setup(configdir, dispall=False, verbosity=0, name_filter=None, json=
|
|||
if "reachable_on" in i: print(f"Address : {i['reachable_on']}:{i['port']}")
|
||||
|
||||
print(f"Stamp Value : {i['value']}")
|
||||
|
||||
|
||||
print(f"\nConfiguration Entry:")
|
||||
config_lines = i["config_entry"].split('\n')
|
||||
for line in config_lines: print(f" {line}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue