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
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------
_______________________________________________ Pyusb-users mailing list Pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users