Skip to content

Commit 63fe94a

Browse files
committed
bug #397: add sleep to give system time to reload the audio card
1 parent 6ce40d3 commit 63fe94a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/reachy_mini/daemon/app/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ def run_app(args: Args) -> None:
158158
"""Temporary fix for audio issues with beta version."""
159159
logging.info("Applying audio fix for beta version.")
160160

161+
import time
162+
161163
from reachy_mini.media.audio_control_utils import init_respeaker_usb
162164

163165
respeaker = init_respeaker_usb()
@@ -166,6 +168,7 @@ def run_app(args: Args) -> None:
166168
else:
167169
respeaker.write("REBOOT", [1])
168170
respeaker.close()
171+
time.sleep(1)
169172
logging.debug("Respeaker rebooted.")
170173

171174
health_check_event = asyncio.Event()

0 commit comments

Comments
 (0)