Skip to content

Commit

Permalink
Added option to mount littlefs as root filesystem when SD card is not…
Browse files Browse the repository at this point in the history
… enabled.
  • Loading branch information
terjeio committed Dec 19, 2024
1 parent b464258 commit ae6ea4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -3032,7 +3032,7 @@ static bool driver_setup (settings_t *settings)
{

#if LITTLEFS_ENABLE
fs_littlefs_mount("/littlefs", esp32_littlefs_hal());
fs_littlefs_mount(LITTLEFS_MOUNT_DIR, esp32_littlefs_hal());
#endif

/******************
Expand Down Expand Up @@ -3268,7 +3268,7 @@ bool driver_init (void)
#else
hal.info = "ESP32";
#endif
hal.driver_version = "241218";
hal.driver_version = "241219";
hal.driver_url = GRBL_URL "/ESP32";
#ifdef BOARD_NAME
hal.board = BOARD_NAME;
Expand Down
1 change: 1 addition & 0 deletions main/my_machine.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
//#define ETHERNET_ENABLE 1 // Ethernet streaming. Uses networking plugin.
//#define BLUETOOTH_ENABLE 1 // Set to 1 for native radio, 2 for HC-05 module.
//#define SDCARD_ENABLE 1 // Run gcode programs from SD card. Set to 2 to enable YModem upload.
//#define LITTLEFS_ENABLE 1 // Enable flash based storage, automatically enabled if WebUI is enabled. Set to 2 to mount as root.
//#define MPG_ENABLE 1 // Enable MPG interface. Requires a serial stream and means to switch between normal and MPG mode.
// 1: Mode switching is by handshake pin.
// 2: Mode switching is by the CMD_MPG_ENABLE_TOGGLE (0x8B) command character.
Expand Down

0 comments on commit ae6ea4a

Please sign in to comment.