瀏覽代碼

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

etagle 7 年之前
父節點
當前提交
498ea7512a
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      Marlin/src/sd/cardreader.h

+ 1
- 0
Marlin/src/sd/cardreader.h 查看文件

@@ -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…
取消
儲存