add family flag and value to read uf2 file
This commit is contained in:
parent
94a17d720c
commit
e06a35ce74
@ -211,6 +211,8 @@ void read_block(uint32_t block_no, uint8_t *data) {
|
||||
bl->numBlocks = FLASH_SIZE / 256;
|
||||
bl->targetAddr = addr;
|
||||
bl->payloadSize = 256;
|
||||
bl->flags = UF2_FLAG_FAMILYID;
|
||||
bl->familyID = UF2_FAMILY_ID;
|
||||
memcpy(bl->data, (void *)addr, bl->payloadSize);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user