Mercurial > ~darius > hgwebdir.cgi > pyinst
comparison usb488.py @ 10:154dab1e474f
Use short form of handle which looks nicer..
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Sat, 16 May 2009 23:33:20 +0930 |
parents | a6b746654ae2 |
children | f588f5bc834a |
comparison
equal
deleted
inserted
replaced
9:a6b746654ae2 | 10:154dab1e474f |
---|---|
141 handle.setAltInterface(altif.alternateSetting) | 141 handle.setAltInterface(altif.alternateSetting) |
142 self.dev = dev | 142 self.dev = dev |
143 self.handle = handle | 143 self.handle = handle |
144 | 144 |
145 # Get some info for humans | 145 # Get some info for humans |
146 self.vendname = self.handle.getString(dev.iManufacturer, 1024) | 146 self.vendname = handle.getString(dev.iManufacturer, 1024) |
147 self.prodname = self.handle.getString(dev.iProduct, 1024) | 147 self.prodname = handle.getString(dev.iProduct, 1024) |
148 self.serial = self.handle.getString(dev.iSerialNumber, 1024) | 148 self.serial = handle.getString(dev.iSerialNumber, 1024) |
149 | 149 |
150 # Determine the endpoints for each operation type | 150 # Determine the endpoints for each operation type |
151 self.intrep = self.bulkinep = self.bulkoutep = None | 151 self.intrep = self.bulkinep = self.bulkoutep = None |
152 | 152 |
153 for ep in altif.endpoints: | 153 for ep in altif.endpoints: |