From 498ea7512a5f6d2f2b56f9ff27ca6212f4aa058c Mon Sep 17 00:00:00 2001 From: etagle Date: Thu, 21 Dec 2017 02:30:18 -0300 Subject: [PATCH] Exposed SDCard interface to the public, to USB MSD is able to read/write sectors on the SD card --- Marlin/src/sd/cardreader.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Marlin/src/sd/cardreader.h b/Marlin/src/sd/cardreader.h index c8e542b75d..4d8b5b4b36 100644 --- a/Marlin/src/sd/cardreader.h +++ b/Marlin/src/sd/cardreader.h @@ -86,6 +86,7 @@ public: FORCE_INLINE uint8_t percentDone() { return (isFileOpen() && filesize) ? sdpos / ((filesize + 99) / 100) : 0; } FORCE_INLINE char* getWorkDirName() { workDir.getFilename(filename); return filename; } + Sd2Card& getSd2Card() { return card; } public: bool saving, logging, sdprinting, cardOK, filenameIsDir; char filename[FILENAME_LENGTH], longFilename[LONG_FILENAME_LENGTH];