Skip to content

Commit 47212ee

Browse files
committed
start debug
1 parent 7b4521f commit 47212ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ports/nrf/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_NRF5X -DCFG_TUD_CDC_RX_BUFSIZE=1024 -DCFG_TUD_C
7878
#Debugging/Optimization
7979
ifeq ($(DEBUG), 1)
8080
#ASMFLAGS += -g -gtabs+
81-
CFLAGS += -O1 -ggdb
82-
LDFLAGS += -O1
81+
CFLAGS += -Os -ggdb
82+
LDFLAGS += -Os
8383
else
8484
CFLAGS += -Os -DNDEBUG
8585
LDFLAGS += -Os

supervisor/shared/filesystem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void filesystem_init(bool create_allowed, bool force_create) {
5050
supervisor_flash_init_vfs(vfs_fat);
5151

5252
// try to mount the flash
53-
FRESULT res = f_mount(&vfs_fat->fatfs);
53+
volatile FRESULT res = f_mount(&vfs_fat->fatfs);
5454

5555
if ((res == FR_NO_FILESYSTEM && create_allowed) || force_create) {
5656
// No filesystem so create a fresh one, or reformat has been requested.

0 commit comments

Comments
 (0)