Userdata export: Fix regression in generating FAT in multiple steps.

This commit is contained in:
Ari Sundholm 2020-11-17 03:00:50 +02:00
parent 67a64693c1
commit c5c3d28b48
2 changed files with 5349 additions and 5348 deletions

File diff suppressed because it is too large Load Diff

View File

@ -128,7 +128,7 @@ alt_u16 generate_fat16(alt_u8 *const fat, const alt_u16 written) {
fat[cur_ofs++] = 0xff;
fat[cur_ofs++] = 0xff;
}
return end_cluster;
return end_cluster - 3U;
}
const alt_u8 prof_dirent_16[PROF_DIRENT_16_SIZE] = {