From e01a1bb6e04dabd4fff57060d13d672330d53c5b Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Mon, 13 May 2024 21:27:53 -0700 Subject: [PATCH] add a warning on --ch-enable and --ch-disable, which should usually be avoided --- meshtastic/__main__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meshtastic/__main__.py b/meshtastic/__main__.py index 7fd0dcb..4474966 100644 --- a/meshtastic/__main__.py +++ b/meshtastic/__main__.py @@ -721,6 +721,10 @@ def onConnected(interface): ch = interface.getNode(args.dest).channels[channelIndex] if args.ch_enable or args.ch_disable: + print( + "Warning: --ch-enable and --ch-disable can produce noncontiguous channels, " + "which can cause errors in some clients. Whenever possible, use --ch-add and --ch-del instead." + ) if channelIndex == 0: meshtastic.util.our_exit( "Warning: Cannot enable/disable PRIMARY channel."