mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-10-30 22:01:57 +01:00
Update meshtrekker.py
This commit is contained in:
1 parent
a15676f745
commit
abf7eecac2
1 file changed
+3
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user