mirror of
https://github.com/meshtastic/python.git
synced 2026-01-02 04:47:54 -05:00
Merge pull request #449 from pdxlocations/no-psk
Show Channels with No PSK on --info
This commit is contained in:
@@ -49,8 +49,8 @@ class Node:
|
||||
for c in self.channels:
|
||||
# print('c.settings.psk:', c.settings.psk)
|
||||
cStr = stripnl(MessageToJson(c.settings))
|
||||
# only show if there is no psk (meaning disabled channel)
|
||||
if c.settings.psk:
|
||||
# don't show disabled channels
|
||||
if channel_pb2.Channel.Role.Name(c.role)!="DISABLED":
|
||||
print(
|
||||
f" {channel_pb2.Channel.Role.Name(c.role)} psk={pskToString(c.settings.psk)} {cStr}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user