From ebd79fc00d3df3ffec35db1cabb2ebb6500d735f Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 20 Jun 2018 16:34:05 +0700 Subject: [PATCH] change volume to nrf52boot --- src/usb/msc_uf2.c | 5 +++-- src/usb/msc_uf2.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/usb/msc_uf2.c b/src/usb/msc_uf2.c index 02e40fe..e5636fb 100644 --- a/src/usb/msc_uf2.c +++ b/src/usb/msc_uf2.c @@ -235,13 +235,14 @@ void msc_flash_init(void) { pstorage_module_param_t fat_psp = { .cb = fat_pstorage_cb}; pstorage_register(&fat_psp, &_fat_psh); - - fat12_mkfs(); } void msc_flash_mount(void) { _wr10_state = WRITE10_IDLE; + + // reset every time it is plugged + fat12_mkfs(); } void msc_flash_umount(void) diff --git a/src/usb/msc_uf2.h b/src/usb/msc_uf2.h index ba6c297..9f0a20f 100644 --- a/src/usb/msc_uf2.h +++ b/src/usb/msc_uf2.h @@ -57,7 +57,7 @@ VERIFY_STATIC( MSC_FLASH_ADDR_START+MSC_FLASH_SIZE == BOOTLOADER_REGION_START-DFU_APP_DATA_RESERVED, ); // must be 11 bytes padded with space -#define MSC_FLASH_VOL_LABEL "FEATHER5284" +#define MSC_FLASH_VOL_LABEL "NRF52BOOT " /*------------------------------------------------------------------*/ /* Note ATTR_WEAK is used when CFG_TUD_MSC = 0