Skip to content

Commit

Permalink
core: ping: update for new Bridges signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Jan 19, 2024
1 parent addca32 commit 1bd4cb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/services/ping/ping1d_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def start(self) -> None:
assert self.bridge is not None
self.bridge.stop()
await asyncio.sleep(5)
self.bridge = Bridge(self.ping.port, self.baud, "0.0.0.0", self.port, automatic_disconnect=False)
self.bridge = Bridge(self.ping.port, self.baud, "0.0.0.0", 0, self.port, automatic_disconnect=False)

def save_settings(self) -> None:
self.manager.load() # re-load as other sensors could have changed it
Expand Down
2 changes: 1 addition & 1 deletion core/services/ping/pingdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async def start(self) -> None:
# Do a ping connection to set the baudrate
PingDevice().connect_serial(self.ping.port.device, self.baud)
set_low_latency(self.ping.port)
self.bridge = Bridge(self.ping.port, self.baud, "0.0.0.0", self.port, automatic_disconnect=False)
self.bridge = Bridge(self.ping.port, self.baud, "0.0.0.0", 0, self.port, automatic_disconnect=False)

def stop(self) -> None:
"""Stops the driver"""
Expand Down

0 comments on commit 1bd4cb3

Please sign in to comment.