From a050817671a6b439196436fac6b40f662bc1a5a6 Mon Sep 17 00:00:00 2001 From: Justin Haze Date: Wed, 24 Apr 2024 09:26:53 -0600 Subject: [PATCH] fix bug in sync gps action --- scos_actions/actions/sync_gps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scos_actions/actions/sync_gps.py b/scos_actions/actions/sync_gps.py index 0fda2887..7163a12d 100644 --- a/scos_actions/actions/sync_gps.py +++ b/scos_actions/actions/sync_gps.py @@ -19,12 +19,12 @@ def __init__(self, parameters: dict): def __call__(self, sensor: Sensor, schedule_entry: dict, task_id: int): logger.debug("Syncing to GPS") self.sensor = sensor - dt = self.sensor.gps.get_gps_time(self.sensor.signal_analyzer) + dt = self.sensor.gps.get_gps_time(self.sensor) date_cmd = ["date", "-s", "{:}".format(dt.strftime("%Y/%m/%d %H:%M:%S"))] subprocess.check_output(date_cmd, shell=True) logger.info(f"Set system time to GPS time {dt.ctime()}") - location = sensor.gps.get_location(self.sensor.signal_analyzer) + location = sensor.gps.get_location(self.sensor) if location is None: raise RuntimeError("Unable to synchronize to GPS")