Skip to content

Commit

Permalink
Moved mount of littlefs filesystem until after settings are loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
terjeio committed Dec 18, 2023
1 parent 3cd429e commit 29839ae
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions main/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
******************/
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 29839ae

Please sign in to comment.