Skip to content

Commit

Permalink
Fix wrong timeout impl. in pvarch
Browse files Browse the repository at this point in the history
  • Loading branch information
xresende committed Mar 11, 2024
1 parent 01a6405 commit a5b9a76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions siriuspy/siriuspy/clientarch/pvarch.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def update(self, timeout=None):
"""."""
self.connect()
if timeout is not None:
self.timeout = None
self.timeout = timeout
data = self.connector.getPVDetails(self.pvname)
if not data:
return False
Expand Down Expand Up @@ -286,7 +286,7 @@ def update(self, mean_sec=None, parallel=True, timeout=None):
"""Update."""
self.connect()
if timeout is not None:
self.timeout = None
self.timeout = timeout
if None in (self.timestamp_start, self.timestamp_stop):
print('Start and stop timestamps not defined! Aborting.')
return
Expand Down

0 comments on commit a5b9a76

Please sign in to comment.