summaryrefslogtreecommitdiff
path: root/ports/stm32/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-04-11 16:52:22 +1000
committerDamien George <damien.p.george@gmail.com>2018-04-11 16:52:22 +1000
commit3d5d76fb7384cd6c0bcd62f6a6799261b73f786d (patch)
treeef74e66239dce90ad06cc1dde831fe56e37c8a56 /ports/stm32/main.c
parentcf9fc7346d91d729e5f6248d4bbbe5cb199cc772 (diff)
stm32/main: Allow a board to configure the label of the flash FS.
To change the default label a board should define: #define MICROPY_HW_FLASH_FS_LABEL "label"
Diffstat (limited to 'ports/stm32/main.c')
-rw-r--r--ports/stm32/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/main.c b/ports/stm32/main.c
index 120ab5b67..4d0e7434b 100644
--- a/ports/stm32/main.c
+++ b/ports/stm32/main.c
@@ -192,7 +192,7 @@ MP_NOINLINE STATIC bool init_flash_fs(uint reset_mode) {
}
// set label
- f_setlabel(&vfs_fat->fatfs, "pybflash");
+ f_setlabel(&vfs_fat->fatfs, MICROPY_HW_FLASH_FS_LABEL);
// create empty main.py
FIL fp;