From 66d17704077db9eef0d559cd1a38bb111a546969 Mon Sep 17 00:00:00 2001 From: Henry Gabryjelski Date: Tue, 19 Mar 2019 01:01:50 -0700 Subject: [PATCH] manually add another lost comment --- src/usb/uf2/ghostfat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usb/uf2/ghostfat.c b/src/usb/uf2/ghostfat.c index 155ecd3..6307b8b 100644 --- a/src/usb/uf2/ghostfat.c +++ b/src/usb/uf2/ghostfat.c @@ -264,7 +264,7 @@ void read_block(uint32_t block_no, uint8_t *data) { sectionIdx -= START_CLUSTERS; if (sectionIdx < NUM_FILES - 1) { memcpy(data, info[sectionIdx].content, strlen(info[sectionIdx].content)); - } else { + } else { // generate the UF2 file data on-the-fly sectionIdx -= NUM_FILES - 1; uint32_t addr = USER_FLASH_START + sectionIdx * 256; if (addr < USER_FLASH_START+FLASH_SIZE) {