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
|
||||
ifeq ($(DEBUG), 1)
|
||||
#ASMFLAGS += -g -gtabs+
|
||||
CFLAGS += -O1 -ggdb
|
||||
LDFLAGS += -O1
|
||||
CFLAGS += -Os -ggdb
|
||||
LDFLAGS += -Os
|
||||
else
|
||||
CFLAGS += -Os -DNDEBUG
|
||||
LDFLAGS += -Os
|
||||
|
@ -50,7 +50,7 @@ void filesystem_init(bool create_allowed, bool force_create) {
|
||||
supervisor_flash_init_vfs(vfs_fat);
|
||||
|
||||
// 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) {
|
||||
// No filesystem so create a fresh one, or reformat has been requested.
|
||||
|
Loading…
Reference in New Issue
Block a user