Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Code/pico_multi_booter/sd_boot/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ static bool __not_in_flash_func(load_program)(const char *filename)
fclose(fp);
return true;
}
// We need to set the pointer back because is_same_existing_program will move the file pointer (fp)
// whether we like it or not.
fseek(fp, 0, SEEK_SET);

size_t program_size = 0;
uint8_t buffer[FLASH_SECTOR_SIZE] = {0};
Expand Down