From abf7eecac2440a626c8a8469973622e25b870ce0 Mon Sep 17 00:00:00 2001 From: Kelly Date: Tue, 25 Aug 2026 11:32:49 -0700 Subject: [PATCH] Update meshtrekker.py --- modules/games/meshtrekker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/games/meshtrekker.py b/modules/games/meshtrekker.py index a648039..6e1706d 100644 --- a/modules/games/meshtrekker.py +++ b/modules/games/meshtrekker.py @@ -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()