Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 8, 2023
1 parent 83287ec commit abed558
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions socs/agents/vantagepro2/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, agent, port="/dev/ttyUSB0", sample_freq=0.5):
self.agent.register_feed('weather_data',
record=True,
agg_params=agg_params)

def _initialize_module(self):
"""Initialize the VantagePro2 module."""
try:
Expand Down Expand Up @@ -127,7 +127,7 @@ def acq(self, session, params=None):
while self.take_data:
pm.sleep()

if self.module is None: # Try to re-initialize module if it fails
if self.module is None: # Try to re-initialize module if it fails
if not self._initialize_module():
time.sleep(30) # wait 30 sec before trying to re-initialize
continue
Expand Down

0 comments on commit abed558

Please sign in to comment.