mirror of
https://github.com/meshtastic/python.git
synced 2026-01-02 12:57:56 -05:00
do not allow channel names longer than 10 characters
This commit is contained in:
@@ -317,6 +317,8 @@ def onConnected(interface):
|
||||
if args.ch_add:
|
||||
closeNow = True
|
||||
n = getNode()
|
||||
if len(args.ch_add) > 10:
|
||||
raise Exception("Channel name must be shorter. Channel not added.")
|
||||
ch = n.getChannelByName(args.ch_add)
|
||||
if ch:
|
||||
logging.error(
|
||||
|
||||
Reference in New Issue
Block a user