mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-23 19:40:15 +10:00
Fix typo
This commit is contained in:
@@ -583,12 +583,12 @@ class BuildOpenCore:
|
|||||||
self.config["DeviceProperties"]["Add"][tb_device_path] = {"class-code": binascii.unhexlify("FFFFFFFF"), "device-id": binascii.unhexlify("FFFF0000")}
|
self.config["DeviceProperties"]["Add"][tb_device_path] = {"class-code": binascii.unhexlify("FFFFFFFF"), "device-id": binascii.unhexlify("FFFF0000")}
|
||||||
|
|
||||||
# Bluetooth Detection
|
# Bluetooth Detection
|
||||||
if not self.constants.custom_model and self.computer.bluetooth:
|
if not self.constants.custom_model and self.computer.bluetooth_chipset:
|
||||||
if self.computer.bluetooth == "BRCM2070 Hub":
|
if self.computer.bluetooth_chipset == "BRCM2070 Hub":
|
||||||
print("- Enabling Bluetooth BRCM2070 for macOS Monterey")
|
print("- Enabling Bluetooth BRCM2070 for macOS Monterey")
|
||||||
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " -brcm2070_patch"
|
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " -brcm2070_patch"
|
||||||
self.enable_kext("BlueToolFixup.kext", self.constants.bluetool_version, self.constants.bluetool_path)
|
self.enable_kext("BlueToolFixup.kext", self.constants.bluetool_version, self.constants.bluetool_path)
|
||||||
elif self.computer.bluetooth == "BRCM2046 Hub":
|
elif self.computer.bluetooth_chipset == "BRCM2046 Hub":
|
||||||
print("- Enabling Bluetooth BRCM2046 for macOS Monterey")
|
print("- Enabling Bluetooth BRCM2046 for macOS Monterey")
|
||||||
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " -brcm2046_patch"
|
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " -brcm2046_patch"
|
||||||
self.enable_kext("BlueToolFixup.kext", self.constants.bluetool_version, self.constants.bluetool_path)
|
self.enable_kext("BlueToolFixup.kext", self.constants.bluetool_version, self.constants.bluetool_path)
|
||||||
|
|||||||
@@ -325,7 +325,7 @@ class Computer:
|
|||||||
computer.storage_probe()
|
computer.storage_probe()
|
||||||
computer.smbios_probe()
|
computer.smbios_probe()
|
||||||
computer.cpu_probe()
|
computer.cpu_probe()
|
||||||
computer.bluetooth()
|
computer.bluetooth_probe()
|
||||||
return computer
|
return computer
|
||||||
|
|
||||||
def gpu_probe(self):
|
def gpu_probe(self):
|
||||||
@@ -440,11 +440,11 @@ class Computer:
|
|||||||
subprocess.run("sysctl machdep.cpu.features".split(), stdout=subprocess.PIPE).stdout.decode().partition(": ")[2].strip().split(" "),
|
subprocess.run("sysctl machdep.cpu.features".split(), stdout=subprocess.PIPE).stdout.decode().partition(": ")[2].strip().split(" "),
|
||||||
)
|
)
|
||||||
|
|
||||||
def bluetooth(self):
|
def bluetooth_probe(self):
|
||||||
usb_data: str = subprocess.run("system_profiler SPUSBDataType".split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.decode()
|
usb_data: str = subprocess.run("system_profiler SPUSBDataType".split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.decode()
|
||||||
if "BRCM2070 Hub" in usb_data:
|
if "BRCM2070 Hub" in usb_data:
|
||||||
self.bluetooth_chipset = "BRCM2070 Hub"
|
self.bluetooth_chipset = "BRCM2070 Hub"
|
||||||
elif "BRCM2046 Hub" in usb_data:
|
elif "BRCM2046 Hub" in usb_data:
|
||||||
self.bluetooth_chipset = "BRCM2046 Hub"
|
self.bluetooth_chipset = "BRCM2046 Hub"
|
||||||
elif "Bluetooth":
|
elif "Bluetooth":
|
||||||
self.bluetooth_chipset = "Generic"
|
self.bluetooth_chipset = "Generic"
|
||||||
|
|||||||
Reference in New Issue
Block a user