Skip to content

Commit 9de04a1

Browse files
authored
Merge pull request #574 from ianmcorvidae/warn-enable-disable
add a warning on --ch-enable and --ch-disable, which should usually be avoided
2 parents 1ebea53 + e01a1bb commit 9de04a1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

meshtastic/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,10 @@ def setSimpleConfig(modem_preset):
721721
ch = interface.getNode(args.dest).channels[channelIndex]
722722

723723
if args.ch_enable or args.ch_disable:
724+
print(
725+
"Warning: --ch-enable and --ch-disable can produce noncontiguous channels, "
726+
"which can cause errors in some clients. Whenever possible, use --ch-add and --ch-del instead."
727+
)
724728
if channelIndex == 0:
725729
meshtastic.util.our_exit(
726730
"Warning: Cannot enable/disable PRIMARY channel."

0 commit comments

Comments
 (0)