From: travisutk Date: Thu, 17 May 2012 22:47:36 +0000 (+0000) Subject: Commented SR_SET_FEATURE events, which only Macs seem to request. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=a89c657d2227ab16d78d136ca94a4ae8a7feb0d8 Commented SR_SET_FEATURE events, which only Macs seem to request. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1174 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/GoodFETMAXUSB.py b/client/GoodFETMAXUSB.py index 6085e70..f16da04 100644 --- a/client/GoodFETMAXUSB.py +++ b/client/GoodFETMAXUSB.py @@ -375,6 +375,7 @@ class GoodFETMAXUSB(GoodFET): data=""; if type(tosend)==str: data=chr((reg<<3)|2)+tosend; + print "PUT %02x:=%s" % (reg,tosend) else: data=[(reg<<3)|2]+tosend; ashex=""; @@ -601,7 +602,7 @@ class GoodFETMAXUSBHID(GoodFETMAXUSB): """Handles a standard setup request.""" setuptype=ord(SUD[bRequest]); if setuptype==SR_GET_DESCRIPTOR: self.send_descriptor(SUD); - elif setuptype==SR_SET_FEATURE: self.feature(1); + #elif setuptype==SR_SET_FEATURE: self.feature(1); elif setuptype==SR_SET_CONFIGURATION: self.set_configuration(SUD); elif setuptype==SR_GET_STATUS: self.get_status(SUD); elif setuptype==SR_SET_ADDRESS: self.rregAS(rFNADDR); diff --git a/client/goodfet.maxusbftdi b/client/goodfet.maxusbftdi index 8848c31..6142e0c 100755 --- a/client/goodfet.maxusbftdi +++ b/client/goodfet.maxusbftdi @@ -110,7 +110,7 @@ class GoodFETMAXUSBFTDI(GoodFETMAXUSB): """Handles a standard setup request.""" setuptype=ord(SUD[bRequest]); if setuptype==SR_GET_DESCRIPTOR: self.send_descriptor(SUD); - elif setuptype==SR_SET_FEATURE: self.feature(1); + #elif setuptype==SR_SET_FEATURE: self.feature(1); elif setuptype==SR_SET_CONFIGURATION: self.set_configuration(SUD); elif setuptype==SR_GET_STATUS: self.get_status(SUD); elif setuptype==SR_SET_ADDRESS: self.rregAS(rFNADDR);