import binascii;
import array;
import time;
+import warnings
from GoodFETMAXUSB import GoodFETMAXUSBHost;
+warnings.warn(
+"""The libraries upon which this program depends will soon be deprecated in
+favor of the USB*.py libraries. The new libraries do not yet support host
+mode, but an example will be written and documented when they do."""
+)
+
if(len(sys.argv)==1):
print "Usage: %s verb [objects]\n" % sys.argv[0];
print "%s info" % sys.argv[0];
client.MAXUSBsetup();
client.hostinit();
+client.usbverbose=False;
if(sys.argv[1]=="info"):
client.hostrun();
client.detect_device();
time.sleep(0.2);
client.enumerate_device();
- for foo in range(1,40):
+ for foo in range(1,255):
print "Grabbing string at index=%i" % foo;
string=client.getDescriptorString(foo);
- print "Strings[%i]=%s" % (foo,string);
+ if string!=None:
+ print "Strings[%i]=%s" % (foo,string);
sys.stdout.flush();