Skip to content

Commit 6c158f4

Browse files
committed
bug #397: remove --fix-audio. using fixed firmware
1 parent 63fe94a commit 6c158f4

File tree

6 files changed

+1
-63
lines changed

6 files changed

+1
-63
lines changed

docs/troubleshooting.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44
## No Microphone Input
55
*For beta only*
66

7-
There is a known issue where the microphone may not initialize correctly. You can use the `--fix-audio` argument to force the audio card to reset before starting the daemon.
8-
9-
Make sure your firmware is updated to version 2.1.2. You may need to run the [update script](../src/reachy_mini/assets/firmware/update.sh). Linux users should also install the proper udev rules using [this script](../src/reachy_mini/assets/firmware/install_udev_rules.sh). Then run:
10-
11-
```bash
12-
reachy-mini-daemon --fix-audio
13-
```
7+
There is a known issue where the microphone may not initialize correctly. Please update to [firmware 2.1.3](../src/reachy_mini/assets/firmware/reachymini_ua_io16_lin_v2.1.3.bin). You may need to run the [update script](../src/reachy_mini/assets/firmware/update.sh).
148

159
Afterwards, run [examples/debug/sound_record.py](../examples/debug/sound_record.py) to check that everything is working properly.
1610

src/reachy_mini/assets/firmware/99-reachy-mini-audio.rules

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/reachy_mini/assets/firmware/install_udev_rules.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/reachy_mini/assets/firmware/reachymini_ua_io16_lin_v2.1.0.bin

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/reachy_mini/assets/firmware/reachymini_ua_io16_lin_v2.1.2.bin

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/reachy_mini/daemon/app/main.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ class Args:
5555

5656
localhost_only: bool | None = None
5757

58-
fix_audio: bool = False
59-
6058

6159
def create_app(args: Args, health_check_event: asyncio.Event | None = None) -> FastAPI:
6260
"""Create and configure the FastAPI application."""
@@ -154,23 +152,6 @@ def run_app(args: Args) -> None:
154152
"""Run the FastAPI app with Uvicorn."""
155153
logging.basicConfig(level=logging.INFO)
156154

157-
if args.fix_audio:
158-
"""Temporary fix for audio issues with beta version."""
159-
logging.info("Applying audio fix for beta version.")
160-
161-
import time
162-
163-
from reachy_mini.media.audio_control_utils import init_respeaker_usb
164-
165-
respeaker = init_respeaker_usb()
166-
if respeaker is None:
167-
logging.error("Respeaker device not found. Cannot apply audio fix.")
168-
else:
169-
respeaker.write("REBOOT", [1])
170-
respeaker.close()
171-
time.sleep(1)
172-
logging.debug("Respeaker rebooted.")
173-
174155
health_check_event = asyncio.Event()
175156
app = create_app(args, health_check_event)
176157

@@ -333,12 +314,6 @@ def main() -> None:
333314
help="Set the logging level (default: INFO).",
334315
)
335316

336-
parser.add_argument(
337-
"--fix-audio",
338-
action="store_true",
339-
help="Fix audio issues with beta version (default: False).",
340-
)
341-
342317
args = parser.parse_args()
343318
run_app(Args(**vars(args)))
344319

0 commit comments

Comments
 (0)