diff --git a/bumble/drivers/rtk.py b/bumble/drivers/rtk.py index 8a1f1f96..bb6e5ea8 100644 --- a/bumble/drivers/rtk.py +++ b/bumble/drivers/rtk.py @@ -414,7 +414,7 @@ class Driver: return None # Then, look in the package's driver directory - directory = pathlib.Path(__file__).parent / "rtl" + directory = pathlib.Path(__file__).parent / "rtk_fw" if directory.is_dir() and (path := (directory / file_name)).is_file(): logger.debug(f"{file_name} found in package dir") return path @@ -482,7 +482,8 @@ class Driver: # Load the firmware firmware_path = cls.find_binary_path(driver_info.fw_name) if not firmware_path: - logger.warning("Firmware file not found") + logger.warning(f"Firmware file {driver_info.fw_name} not found") + logger.warning("See https://google.github.io/bumble/drivers/realtek.html") return None with open(firmware_path, "rb") as firmware_file: firmware = firmware_file.read() diff --git a/docs/mkdocs/mkdocs.yml b/docs/mkdocs/mkdocs.yml index fde6b40b..0cf65f11 100644 --- a/docs/mkdocs/mkdocs.yml +++ b/docs/mkdocs/mkdocs.yml @@ -36,6 +36,9 @@ nav: - HCI Socket: transports/hci_socket.md - Android Emulator: transports/android_emulator.md - File: transports/file.md + - Drivers: + - Overview: drivers/index.md + - Realtek: drivers/realtek.md - API: - Guide: api/guide.md - Examples: api/examples.md