From e2afc36daeaeefd0de214d114db071b63e4820bb Mon Sep 17 00:00:00 2001 From: Henry Gabryjelski Date: Sun, 10 Mar 2019 20:02:56 -0700 Subject: [PATCH] Fix media type mismatch Fix the boot sector media descriptor to match the first FAT entries. --- src/usb/uf2/ghostfat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usb/uf2/ghostfat.c b/src/usb/uf2/ghostfat.c index 1f41c10..5ac475d 100644 --- a/src/usb/uf2/ghostfat.c +++ b/src/usb/uf2/ghostfat.c @@ -106,7 +106,7 @@ static FAT_BootBlock const BootBlock = { .FATCopies = 2, .RootDirectoryEntries = (ROOT_DIR_SECTORS * 512 / 32), .TotalSectors16 = NUM_FAT_BLOCKS - 2, - .MediaDescriptor = 0xF8, + .MediaDescriptor = 0xF0, .SectorsPerFAT = SECTORS_PER_FAT, .SectorsPerTrack = 1, .Heads = 1,