Forráskód Böngészése

Modify mode page 0x30 to match actual Apple CD-drive output (#272)

It appears there was an extra 0x00 at the end.
Petteri Aimonen 2 éve
szülő
commit
f27fc20d2f
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      lib/SCSI2SD/src/firmware/mode.c

+ 2 - 2
lib/SCSI2SD/src/firmware/mode.c

@@ -242,8 +242,8 @@ static const uint8_t SequentialDeviceConfigPage[] =
 static const uint8_t AppleVendorPage[] =
 {
 0x30, // Page code
-23, // Page length
-'A','P','P','L','E',' ','C','O','M','P','U','T','E','R',',',' ','I','N','C',' ',' ',' ',0x00
+0x16, // Page length
+'A','P','P','L','E',' ','C','O','M','P','U','T','E','R',',',' ','I','N','C',' ',' ',' '
 };
 
 static void pageIn(int pc, int dataIdx, const uint8_t* pageData, int pageLen)