From 353f324a84d67ed30c4ef59f6d7494d340b4ed42 Mon Sep 17 00:00:00 2001 From: travisutk Date: Thu, 22 Nov 2012 00:43:32 +0000 Subject: [PATCH] Added empty handles for ejecting a disk and padding the INQUIRY. Mode sense is next in Mass Storage emulation. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1341 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/goodfet.maxusbmass | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client/goodfet.maxusbmass b/client/goodfet.maxusbmass index de25c6e..d0562fa 100755 --- a/client/goodfet.maxusbmass +++ b/client/goodfet.maxusbmass @@ -284,7 +284,7 @@ class GoodFETMAXUSBMass(GoodFETMAXUSBDevice): #print "Responding to CB inquiry."; response=[ 0x00, # 00 for Direct, 1F for "no floppy" - 0x80, # make 0x80 for removable media + 0x80, # make 0x80 for removable media, 0x00 for fixed 0x00, # Version 0x01, # Response Data Format 0x1f, #Additional length. @@ -297,6 +297,8 @@ class GoodFETMAXUSBMass(GoodFETMAXUSBDevice): ord('0'),ord('.'),ord('0'),ord('1')] #print "Sending %i byte reply to %i byte query." % ( # len(response),dtlen); + while len(response)