Oops. Obvious error fix.
This commit is contained in:
parent
74e7baa3f0
commit
bf41b579cb
1 changed files with 1 additions and 1 deletions
|
|
@ -436,7 +436,7 @@ void uf2_read_block (uint32_t block_no, uint8_t *data)
|
|||
uint32_t fid = info_index_of(2 + sectionRelativeSector / BPB_SECTORS_PER_CLUSTER);
|
||||
FileContent_t const * inf = &info[fid];
|
||||
|
||||
uint32_t fileRelativeSector -= (info[fid].cluster_start-2) * BPB_SECTORS_PER_CLUSTER;
|
||||
uint32_t fileRelativeSector = sectionRelativeSector - (info[fid].cluster_start-2) * BPB_SECTORS_PER_CLUSTER;
|
||||
|
||||
if ( fid != FID_UF2 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue