manually add another lost comment
This commit is contained in:
parent
8ab4774c93
commit
66d1770407
@ -264,7 +264,7 @@ void read_block(uint32_t block_no, uint8_t *data) {
|
|||||||
sectionIdx -= START_CLUSTERS;
|
sectionIdx -= START_CLUSTERS;
|
||||||
if (sectionIdx < NUM_FILES - 1) {
|
if (sectionIdx < NUM_FILES - 1) {
|
||||||
memcpy(data, info[sectionIdx].content, strlen(info[sectionIdx].content));
|
memcpy(data, info[sectionIdx].content, strlen(info[sectionIdx].content));
|
||||||
} else {
|
} else { // generate the UF2 file data on-the-fly
|
||||||
sectionIdx -= NUM_FILES - 1;
|
sectionIdx -= NUM_FILES - 1;
|
||||||
uint32_t addr = USER_FLASH_START + sectionIdx * 256;
|
uint32_t addr = USER_FLASH_START + sectionIdx * 256;
|
||||||
if (addr < USER_FLASH_START+FLASH_SIZE) {
|
if (addr < USER_FLASH_START+FLASH_SIZE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user