def StartPCR(): global PCR if PCR is None: print("控制器正在连接中……") PCR = PCRInitializer() PCR.connect() PCR.devices.add_from_config() PCR.start()
def StartPCR(): global PCR if PCR is None: print("控制器正在连接中……") os.system(f"cd {adb_dir} & adb kill-server") PCR = PCRInitializer() PCR.connect() PCR.devices.add_from_config() PCR.start()
def ReconnectPCR(): global PCR if PCR is None: PCR = PCRInitializer() PCR.connect() PCR.start()
def CheckQueue(): global PCR if PCR is None: PCR = PCRInitializer() PCR.connect() PCR.show()
def CheckDevice(): global PCR if PCR is None: PCR = PCRInitializer() PCR.connect() PCR.devices.show()