This commit is contained in:
Mykola Grymalyuk
2021-09-16 19:14:06 -06:00
parent 438ae23ee7
commit 98b7824619

View File

@@ -325,7 +325,7 @@ class Computer:
computer.storage_probe()
computer.smbios_probe()
computer.cpu_probe()
computer.bluetooth()
computer.bluetooth_probe()
return computer
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(" "),
)
def bluetooth(self):
def bluetooth_probe(self):
usb_data: str = subprocess.run("system_profiler SPUSBDataType".split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.decode()
if "BRCM2070 Hub" in usb_data:
self.bluetooth_chipset = "BRCM2070 Hub"
elif "BRCM2046 Hub" in usb_data:
self.bluetooth_chipset = "BRCM2046 Hub"
elif "Bluetooth":
self.bluetooth_chipset = "Generic"
self.bluetooth_chipset = "Generic"