0.0.2d: Added BGA support, graphics!
This commit is contained in:
@ -20,6 +20,8 @@ int fat16_mount(uint8_t drive)
|
||||
return -1;
|
||||
}
|
||||
|
||||
(void) drive;
|
||||
|
||||
fs.bytes_per_sector = boot_sector[11] | (boot_sector[12] << 8);
|
||||
fs.sectors_per_cluster = boot_sector[13];
|
||||
fs.reserved_sector_count = boot_sector[14] | (boot_sector[15] << 8);
|
||||
@ -53,7 +55,7 @@ static int read_fat_entry(uint16_t cluster, uint16_t* out_value)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (idx == fs.bytes_per_sector - 1)
|
||||
if (idx == (uint32_t)(fs.bytes_per_sector - 1))
|
||||
{
|
||||
/* entry spans boundary -> read next sector */
|
||||
uint8_t next_sector[SECTOR_SIZE];
|
||||
|
||||
Reference in New Issue
Block a user