def is_compatible(self, fprint): if self.dev: if fprint.data_ptr: return pyf.fp_dev_supports_print_data(self.dev, fprint.data_ptr) == 1 if fprint.dscv_ptr: return pyf.fp_dev_supports_dscv_print(self.dev, fprint.dscv_ptr) == 1 raise "No print found" if self.dscv: if fprint.data_ptr: return pyf.fp_dscv_dev_supports_print_data(self.dscv, fprint.data_ptr) == 1 if fprint.dscv_ptr: return pyf.fp_dscv_dev_supports_dscv_print(self.dscv, fprint.dscv_ptr) == 1 raise "No print found" raise "No device found"
def is_compatible(self, fprint): """ Checks whether the passed fprint is compatible with the device. open() is not required before this method. """ if self.dev: if fprint.data_ptr: return pyf.fp_dev_supports_print_data(self.dev, fprint.data_ptr) == 1 if fprint.dscv_ptr: return pyf.fp_dev_supports_dscv_print(self.dev, fprint.dscv_ptr) == 1 raise "No print found" if self.dscv: if fprint.data_ptr: return pyf.fp_dscv_dev_supports_print_data(self.dscv, fprint.data_ptr) == 1 if fprint.dscv_ptr: return pyf.fp_dscv_dev_supports_dscv_print(self.dscv, fprint.dscv_ptr) == 1 raise "No print found" raise "No device found"
def is_compatible(self, fprint): """ Checks whether the passed fprint is compatible with the device. open() is not required before this method. """ if self.dev: if fprint.data_ptr: return pyf.fp_dev_supports_print_data(self.dev, fprint.data_ptr) == 1 if fprint.dscv_ptr: return pyf.fp_dev_supports_dscv_print(self.dev, fprint.dscv_ptr) == 1 raise "No print found" if self.dscv: if fprint.data_ptr: return pyf.fp_dscv_dev_supports_print_data( self.dscv, fprint.data_ptr) == 1 if fprint.dscv_ptr: return pyf.fp_dscv_dev_supports_dscv_print( self.dscv, fprint.dscv_ptr) == 1 raise "No print found" raise "No device found"