From 29839aec766818689da3b16a6f18bbe363ebd94b Mon Sep 17 00:00:00 2001 From: Terje Io Date: Mon, 18 Dec 2023 09:25:29 +0100 Subject: [PATCH] Moved mount of littlefs filesystem until after settings are loaded. --- main/driver.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/main/driver.c b/main/driver.c index 5ba77ab..e685265 100644 --- a/main/driver.c +++ b/main/driver.c @@ -2275,6 +2275,11 @@ static char *sdcard_mount (FATFS **fs) // Initializes MCU peripherals for Grbl use static bool driver_setup (settings_t *settings) { + +#if LITTLEFS_ENABLE + fs_littlefs_mount("/littlefs", esp32_littlefs_hal()); +#endif + /****************** * Stepper init * ******************/ @@ -2507,7 +2512,7 @@ bool driver_init (void) #else hal.info = "ESP32"; #endif - hal.driver_version = "231217"; + hal.driver_version = "231218"; hal.driver_url = GRBL_URL "/ESP32"; #ifdef BOARD_NAME hal.board = BOARD_NAME; @@ -2738,10 +2743,6 @@ bool driver_init (void) bluetooth_init_local(); #endif -#if LITTLEFS_ENABLE - fs_littlefs_mount("/littlefs", esp32_littlefs_hal()); -#endif - #include "grbl/plugins_init.h" // no need to move version check before init - compiler will fail any mismatch for existing entries