Skip to content

Commit b240d22

Browse files
Remove undef f from SysCall.h
When SdFat.h is included it was undefining the F() (flash string) macro. This causes all strings to go into RAM, as seen in this issue: esp8266/Arduino#6767 Remove this undef. The F() is only used in a few print statements which are F()-safe on the 8266 now, and in the SD.h and SDFS.h libs the function that actually calls print(F(xxxx)) is never used.
1 parent af4ed0c commit b240d22

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/SysCall.h

+1-7
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,7 @@ namespace sdfat {
4242

4343
//------------------------------------------------------------------------------
4444
#ifdef ESP8266
45-
// undefine F macro if ESP8266.
46-
#undef F
47-
#endif // ESP8266
48-
//------------------------------------------------------------------------------
49-
#ifndef F
50-
/** Define macro for strings stored in flash. */
51-
#define F(str) (str)
45+
#include <pgmspace.h>
5246
#endif // F
5347
//------------------------------------------------------------------------------
5448
/** \return the time in milliseconds. */

0 commit comments

Comments
 (0)