Skip to content

Commit d316aa6

Browse files
MCUdudefacchinm
authored andcommitted
Redefine F() as no-op
megaAVR 0-series have a unified address space so forcing a const string in flash just increases flash occupation with no benefit on RAM usage. Fixes #53
1 parent bf52acd commit d316aa6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: cores/arduino/Arduino.h

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
#include <avr/io.h>
2727
#include <avr/interrupt.h>
2828

29+
#undef F
30+
#define F(str) (str)
31+
2932
#ifdef __cplusplus
3033
extern "C"{
3134
#endif

0 commit comments

Comments
 (0)