From 33c8d4c0ad124398c27c38298fb04e350248eef4 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 11 Dec 2024 21:14:46 -0800 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mesh_bot.py b/mesh_bot.py index 0f9454f..a5f3048 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -850,7 +850,8 @@ def handle_whois(message, deviceID, channel_number, message_from_id): location = get_node_location(seenNodes[i]['nodeID'], deviceID, channel_number) msg += f"Ch: {seenNodes[i]['channel']}, Int: {seenNodes[i]['rxInterface']}" msg += f"Lat: {location[0]}, Lon: {location[1]}\n" - msg += f"Loc: {where_am_i(str(location[0]), str(location[1]))}\n" + if location != [latitudeValue, longitudeValue]: + msg += f"Loc: {where_am_i(str(location[0]), str(location[1]))}\n" return msg