From e07c75af142d25421cbbf9dd772b34fe74ade598 Mon Sep 17 00:00:00 2001 From: Michael Smorto Date: Sat, 29 Nov 2025 13:12:09 -0500 Subject: [PATCH] Update SD.h to include fgets. Added fgets per the core PR: https://github.com/PaulStoffregen/cores/pull/791 --- src/SD.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SD.h b/src/SD.h index 27dedcb..ed9aeb8 100644 --- a/src/SD.h +++ b/src/SD.h @@ -106,6 +106,9 @@ class SDFile : public FileImpl sdfatfile.close(); } } + virtual int fgets(char* str, int num, char* delim = nullptr) { + return sdfatfile.fgets(str, num, delim); + } virtual bool isOpen() { return sdfatfile.isOpen(); }