Skip to content

Commit 9615963

Browse files
committed
Minor fixes
1 parent 0ce73d9 commit 9615963

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

sbot/future/board_manager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from typing import Callable, ClassVar, NamedTuple
1515

1616
from sbot.exceptions import BoardDisconnectionError
17-
from sbot.serial_wrapper import SerialWrapper
17+
from sbot.serial_wrapper import BASE_TIMEOUT, SerialWrapper
1818
from sbot.utils import BoardIdentity, get_simulator_boards, get_USB_identity
1919
from serial.tools.list_ports import comports
2020
from serial.tools.list_ports_common import ListPortInfo
@@ -81,6 +81,7 @@ class DiscoveryTemplate(NamedTuple):
8181
use_usb_serial: bool = False
8282
sim_board_type: str | None = None
8383
sim_only: bool = False
84+
timeout: float | None = BASE_TIMEOUT
8485

8586

8687
class PortIdentity(NamedTuple):
@@ -270,6 +271,7 @@ def _inititalse_port(
270271
template.baud_rate,
271272
identity=initial_identity,
272273
delay_after_connect=template.delay_after_connect,
274+
timeout=template.timeout,
273275
)
274276
try:
275277
response = board_serial.query('*IDN?')

sbot/future/classless/robot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
comp = Comp()
2323
utils = Utils(boards, comp)
2424

25-
# TODO camera, leds, mqtt
25+
# TODO camera, leds, mqtt, start led
2626

2727
overrides = get_overrides()
2828

sbot/future/classless/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def __init__(self, boards: BoardManager, comp: Comp):
2727
sim_only=True,
2828
sim_board_type='TimeServer',
2929
max_boards=1,
30+
timeout=None, # Disable timeout
3031
)
3132
BoardManager.register_board(template)
3233
# We need to trigger loading the metadata when wait_start is called

0 commit comments

Comments
 (0)