Browse Source

Exposed SDCard interface to the public, to USB MSD is able to read/write sectors on the SD card

etagle 6 years ago
parent
commit
498ea7512a
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      Marlin/src/sd/cardreader.h

+ 1
- 0
Marlin/src/sd/cardreader.h View File

@@ -86,6 +86,7 @@ public:
86 86
   FORCE_INLINE uint8_t percentDone() { return (isFileOpen() && filesize) ? sdpos / ((filesize + 99) / 100) : 0; }
87 87
   FORCE_INLINE char* getWorkDirName() { workDir.getFilename(filename); return filename; }
88 88
 
89
+  Sd2Card& getSd2Card() { return card; }
89 90
 public:
90 91
   bool saving, logging, sdprinting, cardOK, filenameIsDir;
91 92
   char filename[FILENAME_LENGTH], longFilename[LONG_FILENAME_LENGTH];

Loading…
Cancel
Save