Open OneMonkeyArmy opened 1 year ago
Done... no help needed !!!
REMOVED:
typedef TERN(NEED_SD2CARD_SDIO, DiskIODriver_SDIO, DiskIODriver_SPI_SD) sdcard_driver_t;
static sdcard_driver_t media_driver_sdcard;
#endif
ADDED:
typedef DiskIODriver_SPI_SD sdcard_driver_t;
static sdcard_driver_t media_driver_sdcard;
ADDED:
typedef DiskIODriver_SDIO sdiocard_driver_t;
static sdiocard_driver_t media_driver_sdiocard;
REMOVED:
CardReader::sdcard_driver_t CardReader::media_driver_sdcard;
ADDED:
CardReader::sdcard_driver_t CardReader::media_driver_sdcard;
ADDED:
CardReader::sdiocard_driver_t CardReader::media_driver_sdiocard;
#if ENABLED(SDIO_SUPPORT)
#define NEED_SD2CARD_SDIO 1
#define NEED_SD2CARD_SPI 1 // added this line
#else
#define NEED_SD2CARD_SPI 1
#endif
REMOVED:
ADDED:
ADDED:
CHANGED the DEFAULT_SHARED_VOLUME to SV_SD_ONBOARD ...
#define VOLUME_SD_ONBOARD
#define VOLUME_USB_FLASH_DRIVE
#define DEFAULT_VOLUME SV_SD_ONBOARD
#define DEFAULT_SHARED_VOLUME SV_SD_ONBOARD // SV_USB_FLASH_DRIVE
only have to use ...
card.changeMedia(&card.media_driver_sdcard); // to use external SD CARD or card.changeMedia(&card.media_driver_sdiocard); // to use internal (on board) micro sd card (sdio)
then card.mount();
Probably forgot a few things, but it is a starting point! A WORKING solution, just waiting to be improved by someone !!
I have solved the problem long ago... I handle the volumes and the file manipulation like the good old DOS !!! All that on the serial with the Gcode... From Repetier , Octoprint ... also have support for USB flash drive ...
Is your feature request related to a problem? Please describe.
By simply adding #define SDIO_SUPPORT in configuration.h , I have full access to my onboard micro SD_CARD(sdio)... but my SD CARD is disabled...
To have access to my SD CARD, I have to comment // #define SDIO_SUPPORT, then MY SD CARD is available, but of course the micro sd-card(sdio) is no longer...
IT will be very usefull to add the possibility to have both.. and use card.changemedia(), to switch from one to the other....
Are you looking for hardware support?
No response
Describe the feature you want
By simply adding #define SDIO_SUPPORT in configuration.h , I have full access to my onboard micro SD_CARD(sdio)... but my SD CARD is disabled...
To have access to my SD CARD, I have to comment // #define SDIO_SUPPORT, then MY SD CARD is available, but of course the micro sd-card(sdio) is no longer...
IT will be very usefull to add the possibility to have both.. and use card.changemedia(), to switch from one to the other....
Additional context
No response