start debug
This commit is contained in:
parent
7b4521f039
commit
47212ee31e
@ -78,8 +78,8 @@ CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_NRF5X -DCFG_TUD_CDC_RX_BUFSIZE=1024 -DCFG_TUD_C
|
|||||||
#Debugging/Optimization
|
#Debugging/Optimization
|
||||||
ifeq ($(DEBUG), 1)
|
ifeq ($(DEBUG), 1)
|
||||||
#ASMFLAGS += -g -gtabs+
|
#ASMFLAGS += -g -gtabs+
|
||||||
CFLAGS += -O1 -ggdb
|
CFLAGS += -Os -ggdb
|
||||||
LDFLAGS += -O1
|
LDFLAGS += -Os
|
||||||
else
|
else
|
||||||
CFLAGS += -Os -DNDEBUG
|
CFLAGS += -Os -DNDEBUG
|
||||||
LDFLAGS += -Os
|
LDFLAGS += -Os
|
||||||
|
@ -50,7 +50,7 @@ void filesystem_init(bool create_allowed, bool force_create) {
|
|||||||
supervisor_flash_init_vfs(vfs_fat);
|
supervisor_flash_init_vfs(vfs_fat);
|
||||||
|
|
||||||
// try to mount the flash
|
// try to mount the flash
|
||||||
FRESULT res = f_mount(&vfs_fat->fatfs);
|
volatile FRESULT res = f_mount(&vfs_fat->fatfs);
|
||||||
|
|
||||||
if ((res == FR_NO_FILESYSTEM && create_allowed) || force_create) {
|
if ((res == FR_NO_FILESYSTEM && create_allowed) || force_create) {
|
||||||
// No filesystem so create a fresh one, or reformat has been requested.
|
// No filesystem so create a fresh one, or reformat has been requested.
|
||||||
|
Loading…
Reference in New Issue
Block a user