Merge pull request #456 from Stefanowicz/Marlin_v1
Add (as an option) slower SD transfer mode
This commit is contained in:
commit
4f96ad5621
2 changed files with 5 additions and 0 deletions
|
@ -319,6 +319,7 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
|
||||||
//#define ULTRA_LCD //general lcd support, also 16x2
|
//#define ULTRA_LCD //general lcd support, also 16x2
|
||||||
//#define DOGLCD // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
|
//#define DOGLCD // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
|
||||||
//#define SDSUPPORT // Enable SD Card Support in Hardware Console
|
//#define SDSUPPORT // Enable SD Card Support in Hardware Console
|
||||||
|
//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
|
||||||
|
|
||||||
//#define ULTIMAKERCONTROLLER //as available from the ultimaker online store.
|
//#define ULTIMAKERCONTROLLER //as available from the ultimaker online store.
|
||||||
//#define ULTIPANEL //the ultipanel as on thingiverse
|
//#define ULTIPANEL //the ultipanel as on thingiverse
|
||||||
|
|
|
@ -146,7 +146,11 @@ void CardReader::initsd()
|
||||||
cardOK = false;
|
cardOK = false;
|
||||||
if(root.isOpen())
|
if(root.isOpen())
|
||||||
root.close();
|
root.close();
|
||||||
|
#ifdef SDSLOW
|
||||||
|
if (!card.init(SPI_HALF_SPEED,SDSS))
|
||||||
|
#else
|
||||||
if (!card.init(SPI_FULL_SPEED,SDSS))
|
if (!card.init(SPI_FULL_SPEED,SDSS))
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
//if (!card.init(SPI_HALF_SPEED,SDSS))
|
//if (!card.init(SPI_HALF_SPEED,SDSS))
|
||||||
SERIAL_ECHO_START;
|
SERIAL_ECHO_START;
|
||||||
|
|
Reference in a new issue