Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usb-copy-ux-fix #144

Merged
merged 3 commits into from
Apr 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions usb_flash_drive_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,14 @@ def blink(self, times: Union[int, None] = None, background: bool = True) -> None
"""
if not config.USE_LED:
return
self._led.blink(n=times, background=True)
self._led.blink(n=times, background=background)
time.sleep(2)

def turn_off(self) -> None:
"""Turn off LED."""
if not config.USE_LED:
return
self._led.off()
time.sleep(2)

def turn_on(self) -> None:
"""Turn on LED."""
Expand Down Expand Up @@ -364,9 +363,9 @@ def shutdown(self):
"""Shutdown OTCamera."""

self._turn_off_all_leds()
self.rec_led.blink(times=4, background=False)
self.power_led.blink(times=4, background=False)

self._turn_off_all_leds()
self.power_led.turn_on()

if not config.DEBUG_MODE_ON:
log.closefile()
Expand Down