Save root cluster number
This commit is contained in:
@@ -16,6 +16,9 @@ uint16_t imulii(uint16_t a, uint16_t b) {
|
||||
|
||||
uint8_t SD_readSingleBlock(uint32_t addr, uint8_t *buf, uint8_t *error) {
|
||||
FILE* f = fopen(FILE_PATH, "rb");
|
||||
(void)error;
|
||||
fseek(f, addr * 512, SEEK_SET);
|
||||
fread(buf, 512, 1, f);
|
||||
fclose(f);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user