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")