Skip to content

Commit 82f2d26

Browse files
committed
Use modern sync() for compatibility with newer ESP cores.
1 parent 13cecec commit 82f2d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firmware/RTK_Surveyor/FileSdFatMMC.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class FileSdFatMMC : public SdFile
158158
void flush()
159159
{
160160
if (USE_SPI_MICROSD)
161-
_sdFile->flush();
161+
_sdFile->sync();
162162
#ifdef COMPILE_SD_MMC
163163
else
164164
_file->flush();

0 commit comments

Comments
 (0)