Skip to content

Commit

Permalink
Merge pull request #858 from jluebbe/usbvideo-typos
Browse files Browse the repository at this point in the history
driver/usbvideodriver: fix typos
  • Loading branch information
Emantor authored Oct 28, 2021
2 parents fe0a52b + 13dce1c commit 3fe80b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions labgrid/driver/usbvideodriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_qualities(self):
("mid", "image/jpeg,width=1280,height=720,framerate=10/1"),
("high", "image/jpeg,width=1920,height=1080,framerate=10/1"),
])
raise InvalidConfigError("Unkown USB video device {:04x}:{:04x}".format(*match))
raise InvalidConfigError("Unknown USB video device {:04x}:{:04x}".format(*match))

def select_caps(self, hint=None):
default, variants = self.get_qualities()
Expand All @@ -49,7 +49,7 @@ def select_caps(self, hint=None):
if name == variant:
return caps
raise InvalidConfigError(
f"Unkown video format {variant} for device {self.video.vendor_id:04x}:{self.video.model_id:04x}" # pylint: disable=line-too-long
f"Unknown video format {variant} for device {self.video.vendor_id:04x}:{self.video.model_id:04x}" # pylint: disable=line-too-long
)

def get_pipeline(self, path, caps, controls=None):
Expand All @@ -66,7 +66,7 @@ def get_pipeline(self, path, caps, controls=None):
elif match == (0x534d, 0x2109):
inner = None # just forward the jpeg frames
else:
raise InvalidConfigError("Unkown USB video device {:04x}:{:04x}".format(*match))
raise InvalidConfigError("Unknown USB video device {:04x}:{:04x}".format(*match))

pipeline = f"v4l2src device={path} "
if controls:
Expand Down Expand Up @@ -98,7 +98,7 @@ def stream(self, caps_hint=None, controls=None):
stdout=subprocess.DEVNULL,
)

# wait until one subprocess has termianted
# wait until one subprocess has terminated
while True:
try:
tx.wait(timeout=0.1)
Expand Down

0 comments on commit 3fe80b0

Please sign in to comment.