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