Update meshtrekker.py

This commit is contained in:
Kelly committed 2026-08-25 11:32:49 -07:00
1 parent a15676f745
commit abf7eecac2
1 file changed
+3 -1
+3 -1
View File
@@ -212,8 +212,10 @@ class MeshTrekker:
# Initialize the game
game = MeshTrekker()
def handle_meshtrekker(user_id, deviceID, channel_number, location_info=(0,0)):
def handle_meshtrekker(user_id, deviceID, channel_number, location_info=None):
# Process GPS data from Meshtastic devices
if location_info is None:
location_info = "0: 0, 0" # Default location string
latitude, longitude = location_info.split(": ")[1].split(", ")
current_time = datetime.now()