Skip to content

Commit 771c462

Browse files
committed
Add fileSize to FileSdFatMMC.h
Fix for #415
1 parent 98d5b97 commit 771c462

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Firmware/RTK_Surveyor/FileSdFatMMC.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,16 @@ class FileSdFatMMC : public SdFile
178178
_sdFile->sync();
179179
};
180180

181+
int fileSize()
182+
{
183+
if (USE_SPI_MICROSD)
184+
return _sdFile->fileSize();
185+
#ifdef COMPILE_SD_MMC
186+
else
187+
return _file->fileSize();
188+
#endif
189+
};
190+
181191
protected:
182192
SdFile * _sdFile;
183193
#ifdef COMPILE_SD_MMC

0 commit comments

Comments
 (0)