From e06a35ce747e12ba16815b693db13364220a5672 Mon Sep 17 00:00:00 2001 From: hathach Date: Sat, 11 Aug 2018 00:19:01 +0700 Subject: [PATCH] add family flag and value to read uf2 file --- src/usb/uf2/ghostfat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/usb/uf2/ghostfat.c b/src/usb/uf2/ghostfat.c index 60e10eb..8e8ea58 100644 --- a/src/usb/uf2/ghostfat.c +++ b/src/usb/uf2/ghostfat.c @@ -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); } }