Skip to content

Commit 86d312f

Browse files
committed
cli: add NXT and EV3 to USB match for run command
Add the NXT and EV3 USB product IDs to the list of supported devices for the `run` command in the CLI.
1 parent 3eb3754 commit 86d312f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pybricksdev/cli/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,10 @@ async def run(self, args: argparse.Namespace):
196196

197197
from pybricksdev.connections.pybricks import PybricksHubUSB
198198
from pybricksdev.usb import (
199+
EV3_USB_PID,
199200
LEGO_USB_VID,
200201
MINDSTORMS_INVENTOR_USB_PID,
202+
NXT_USB_PID,
201203
SPIKE_ESSENTIAL_USB_PID,
202204
SPIKE_PRIME_USB_PID,
203205
)
@@ -208,6 +210,8 @@ def is_pybricks_usb(dev):
208210
and (
209211
dev.idProduct
210212
in [
213+
NXT_USB_PID,
214+
EV3_USB_PID,
211215
SPIKE_PRIME_USB_PID,
212216
SPIKE_ESSENTIAL_USB_PID,
213217
MINDSTORMS_INVENTOR_USB_PID,

0 commit comments

Comments
 (0)