From 4b0ca13ad1048c721d97f1c3010647a488a2cbdf Mon Sep 17 00:00:00 2001 From: pdxlocations Date: Thu, 15 Jun 2023 21:29:46 -0700 Subject: [PATCH] list channels with no psk --- meshtastic/node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshtastic/node.py b/meshtastic/node.py index ad1c0a6..df0f486 100644 --- a/meshtastic/node.py +++ b/meshtastic/node.py @@ -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}" )