diff --git a/SARA/reboot/start.py b/SARA/reboot/start.py index 5d5ca8b..3ecf0e9 100644 --- a/SARA/reboot/start.py +++ b/SARA/reboot/start.py @@ -1,4 +1,4 @@ -''' +r''' ____ _ ____ _ / ___| / \ | _ \ / \ \___ \ / _ \ | |_) | / _ \ @@ -19,6 +19,8 @@ import sys import json import re import sqlite3 +import traceback + #GPIO SARA_power_GPIO = 16 @@ -384,12 +386,12 @@ try: latitude = match.group(1) longitude = match.group(2) print(f"📍 Latitude: {latitude}, Longitude: {longitude}") + #update sqlite table + update_sqlite_config("latitude_raw", float(latitude)) + update_sqlite_config("longitude_raw", float(longitude)) else: print("❌ Failed to extract coordinates.") - #update sqlite table - update_sqlite_config("latitude_raw", float(latitude)) - update_sqlite_config("longitude_raw", float(longitude)) time.sleep(1)