Skip to content

Commit

Permalink
ACK faster on set_config
Browse files Browse the repository at this point in the history
  • Loading branch information
ktemkin authored and Kyle J. Temkin committed Sep 11, 2017
1 parent c614ff1 commit cbeb18f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions facedancer/USBDevice.py
Expand Up @@ -329,13 +329,13 @@ def handle_set_configuration_request(self, req):
for e in i.endpoints:
self.endpoints[e.number] = e

# HACK: blindly acknowledge request
self.ack_status_stage()

# notify the device of the recofiguration, in case
# it needs to e.g. set up endpoints accordingly
self.maxusb_app.configured(self.configuration)

# HACK: blindly acknowledge request
self.ack_status_stage()

# USB 2.0 specification, section 9.4.4 (p 282 of pdf)
def handle_get_interface_request(self, req):
print(self.name, "received GET_INTERFACE request")
Expand Down

0 comments on commit cbeb18f

Please sign in to comment.