From cd1ecab4e017e8bb6926d24c7dd3392ddb698b2d Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Sun, 21 Apr 2024 09:38:32 -0700 Subject: [PATCH] Don't allow --dest with --setlat/lon/alt. Fixes #545 --- meshtastic/__main__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meshtastic/__main__.py b/meshtastic/__main__.py index 0ef16be8..3cc503fa 100644 --- a/meshtastic/__main__.py +++ b/meshtastic/__main__.py @@ -251,6 +251,9 @@ def onConnected(interface): print("Connected to radio") if args.setlat or args.setlon or args.setalt: + if args.dest != BROADCAST_ADDR: + print("Setting latitude, longitude, and altitude of remote nodes is not supported.") + return closeNow = True alt = 0