From 072fca72cc19227fc42a2678abdfb4eb92afe97b Mon Sep 17 00:00:00 2001 From: AirLab Date: Mon, 3 Nov 2025 17:31:13 +0100 Subject: [PATCH] update --- SARA/reboot/start.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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)