File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ void read_block(uint32_t block_no, uint8_t *data) {
210
210
if (sectionIdx >= SECTORS_PER_FAT )
211
211
sectionIdx -= SECTORS_PER_FAT ; // second FAT is same as the first...
212
212
if (sectionIdx == 0 ) {
213
- data [0 ] = 0xf0 ;
213
+ data [0 ] = 0xf8 ; // first FAT entry must match BPB MediaDescriptor
214
214
// WARNING -- code presumes only one NULL .content for .UF2 file
215
215
// and all non-NULL .content fit in one sector
216
216
// and requires it be the last element of the array
@@ -223,7 +223,7 @@ void read_block(uint32_t block_no, uint8_t *data) {
223
223
if (UF2_FIRST_SECTOR <= v && v <= UF2_LAST_SECTOR )
224
224
((uint16_t * )(void * )data )[i ] = v == UF2_LAST_SECTOR ? 0xffff : v + 1 ;
225
225
}
226
- } else if (block_no < START_CLUSTERS ) {
226
+ } else if (block_no < START_CLUSTERS ) { // Requested root directory sector
227
227
228
228
sectionIdx -= START_ROOTDIR ;
229
229
You can’t perform that action at this time.
0 commit comments