Enable NFC for Linux and pcscd on Dell E7470 (and others) with ControlVault2
Jacek Kowalski
2019-03-25 36fd635d4f41c6e244c58ea53802712c490c3538
Check if there is only one vendor-specific interface
1 files modified
3 ■■■■ changed files
bcm20795.py 3 ●●●● patch | view | raw | blame | history
bcm20795.py
@@ -86,8 +86,9 @@
        bcm_interface = None
        for interface in configuration:
            if interface.bInterfaceClass == 0xff and interface.iInterface == 0x08:
                if bcm_interface is not None:
                    raise Exception('More than one vendor-specific interface found!')
                bcm_interface = interface
                break
        if bcm_interface is None:
            raise Exception('Cannot find vendor-specific interface')
        logger.debug('Interface found: {}'.format(bcm_interface._str()))