Skip to content

Commit e07c75a

Browse files
committed
Update SD.h to include fgets.
Added fgets per the core PR: PaulStoffregen/cores#791
1 parent c535ae9 commit e07c75a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SD.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ class SDFile : public FileImpl
106106
sdfatfile.close();
107107
}
108108
}
109+
virtual int fgets(char* str, int num, char* delim = nullptr) {
110+
return sdfatfile.fgets(str, num, delim);
111+
}
109112
virtual bool isOpen() {
110113
return sdfatfile.isOpen();
111114
}

0 commit comments

Comments
 (0)