Skip to content

Commit

Permalink
Fixed SD card not mounted message that sometimes get truncated,
Browse files Browse the repository at this point in the history
  • Loading branch information
terjeio committed Feb 26, 2024
1 parent 27536ca commit 399cc85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -2367,8 +2367,8 @@ static char *sdcard_mount (FATFS **fs)

gpio_set_drive_capability(PIN_NUM_CS, GPIO_DRIVE_CAP_3);

if ((ret = esp_vfs_fat_sdspi_mount("/sdcard", &host, &slot_config, &mount_config, &card)) != ESP_OK)
report_message(ret == ESP_FAIL ? "Failed to mount filesystem" : "Failed to initialize SD card", Message_Warning);
if((ret = esp_vfs_fat_sdspi_mount("/sdcard", &host, &slot_config, &mount_config, &card)) != ESP_OK)
protocol_enqueue_foreground_task(report_warning, ret == ESP_FAIL ? "Failed to mount filesystem" : "Failed to initialize SD card");
}

if(card && fs) {
Expand Down Expand Up @@ -2755,7 +2755,7 @@ bool driver_init (void)
#else
hal.info = "ESP32";
#endif
hal.driver_version = "240223";
hal.driver_version = "240224";
hal.driver_url = GRBL_URL "/ESP32";
#ifdef BOARD_NAME
hal.board = BOARD_NAME;
Expand Down

0 comments on commit 399cc85

Please sign in to comment.