diff --git a/meshtastic/node.py b/meshtastic/node.py index 8ff2c74..457b140 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}" )