From b0ffd16b9a06f71372d7943b531cffd45b1bd728 Mon Sep 17 00:00:00 2001 From: travisutk Date: Sun, 2 Sep 2012 14:43:38 +0000 Subject: [PATCH] Fixed syntax error in Read Format Capacity and exit on Write Sector, needed for Windows support but not Linux. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1249 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/goodfet.maxusbmass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/goodfet.maxusbmass b/client/goodfet.maxusbmass index 0882642..da42c90 100755 --- a/client/goodfet.maxusbmass +++ b/client/goodfet.maxusbmass @@ -317,7 +317,7 @@ class GoodFETMAXUSBMass(GoodFETMAXUSBDevice): elif verb==0x23: #Read Format Capacity response=[ 0x00, 0,0x00,0x08, #Capacity list length. - 0,0x00,x10,0x00, # Number of sectors, implying 10MB. + 0,0x00,0x10,0x00, # Number of sectors, implying 10MB. 0x01,0x00, #reserved/desciptor code. 0x02,0x00 # 512 bytes/sector. Why is this twice? ]; @@ -365,7 +365,7 @@ class GoodFETMAXUSBMass(GoodFETMAXUSBDevice): #sys.exit(); elif verb==0x2A: #WRITE SECTOR print "Haven't implemented WRITE SECTOR."; - sys.exit(); + #sys.exit(); else: print "ERROR: Unknown SCSI command block verb %02x." % verb; status=1; #Command Failed -- 2.20.1