We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ab4774 commit 66d1770Copy full SHA for 66d1770
src/usb/uf2/ghostfat.c
@@ -264,7 +264,7 @@ void read_block(uint32_t block_no, uint8_t *data) {
264
sectionIdx -= START_CLUSTERS;
265
if (sectionIdx < NUM_FILES - 1) {
266
memcpy(data, info[sectionIdx].content, strlen(info[sectionIdx].content));
267
- } else {
+ } else { // generate the UF2 file data on-the-fly
268
sectionIdx -= NUM_FILES - 1;
269
uint32_t addr = USER_FLASH_START + sectionIdx * 256;
270
if (addr < USER_FLASH_START+FLASH_SIZE) {
0 commit comments