Browse Source

Add (as an option) slower SD transfer mode

Lukasz Stefanowicz 11 years ago
parent
commit
d71f1e9bf6
2 changed files with 5 additions and 0 deletions
  1. 1
    0
      Marlin/Configuration.h
  2. 4
    0
      Marlin/cardreader.cpp

+ 1
- 0
Marlin/Configuration.h View File

319
 //#define ULTRA_LCD  //general lcd support, also 16x2
319
 //#define ULTRA_LCD  //general lcd support, also 16x2
320
 //#define DOGLCD	// Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
320
 //#define DOGLCD	// Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
321
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
321
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
322
+//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
322
 
323
 
323
 //#define ULTIMAKERCONTROLLER //as available from the ultimaker online store.
324
 //#define ULTIMAKERCONTROLLER //as available from the ultimaker online store.
324
 //#define ULTIPANEL  //the ultipanel as on thingiverse
325
 //#define ULTIPANEL  //the ultipanel as on thingiverse

+ 4
- 0
Marlin/cardreader.cpp View File

146
   cardOK = false;
146
   cardOK = false;
147
   if(root.isOpen())
147
   if(root.isOpen())
148
     root.close();
148
     root.close();
149
+#ifdef SDSLOW
150
+  if (!card.init(SPI_HALF_SPEED,SDSS))
151
+#else
149
   if (!card.init(SPI_FULL_SPEED,SDSS))
152
   if (!card.init(SPI_FULL_SPEED,SDSS))
153
+#endif
150
   {
154
   {
151
     //if (!card.init(SPI_HALF_SPEED,SDSS))
155
     //if (!card.init(SPI_HALF_SPEED,SDSS))
152
     SERIAL_ECHO_START;
156
     SERIAL_ECHO_START;

Loading…
Cancel
Save