From: Phil H. <ph...@ha...> - 2008-12-19 15:26:34
|
Phil Hannent wrote: > When I do: > read_bytes = self.handle.interruptRead(PlugUSBDevice.PLUG_BULK_OUT_EP,sent_bytes); > > How can I split the read_bytes so that I can read each byte individually? > > if I print it I just get: > (33, 1, 32) > Ok, so I figured out that if I read while there was nothing to read I got the count of sent_bytes which I cannot iterate over, I just put in a clause that tested sent_bytes == read_bytes to prevent that, so I could later read the tuple with read_bytes[0]. Thanks anyway. Phil |