Beispiel #1
0
 def open(self):
     """Connects to the device."""
     if self.dev:
         raise "Device already open"
     self.dev = pyf.fp_dev_open(self.dscv)
     if not self.dev:
         raise "device open failed"
Beispiel #2
0
	def open(self):
		"""Connects to the device."""
		if self.dev:
			raise "Device already open"
		self.dev = pyf.fp_dev_open(self.dscv)
		if not self.dev:
			raise "device open failed"
	def open(self):
		if self.dev:
			raise "Device already open"
		self.dev = pyf.fp_dev_open(self.dscv)
		if not self.dev:
			raise "device open failed"