Apply suggestions from code review of branch flash-led-sim
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
This commit is contained in:
parent
f05cb396c8
commit
676d34842a
4 changed files with 16 additions and 7 deletions
|
|
@ -340,7 +340,7 @@ class SimulatedCamera(BaseCamera):
|
|||
pl_img = Image.fromarray(np_img.astype("uint8"))
|
||||
return pl_img.resize((self.shape[1], self.shape[0]), Image.Resampling.BILINEAR)
|
||||
|
||||
@lt.action
|
||||
def set_led(self, led_on: bool = True) -> None:
|
||||
def set_led(self, led_on: bool = True, led_channel: str = None) -> None: # noqa: ARG002
|
||||
"""Set the simulated LED to on or off."""
|
||||
if led_on:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue