tma: Fix sleep/wake semantics, now tested on hardware.

This commit is contained in:
Michael Scire
2018-12-05 07:11:06 -08:00
parent 9fe8b22269
commit d875d84d2d
4 changed files with 11 additions and 2 deletions

View File

@@ -80,6 +80,7 @@ class UsbConnection(UsbInterface):
try:
# Perform Query + Connection handshake
print 'Performing handshake...'
self.intf.send_packet(Packet().set_service(ServiceId.USB_QUERY_TARGET))
query_resp = self.intf.read_packet()
print 'Found Switch, Protocol version 0x%x' % query_resp.read_u32()