force inline
This commit is contained in:
@ -8,6 +8,8 @@
|
||||
#include <avr/pgmspace.h>
|
||||
#include "Configuration.h"
|
||||
|
||||
|
||||
#define FORCE_INLINE __attribute__((always_inline)) inline
|
||||
//#define SERIAL_ECHO(x) Serial << "echo: " << x;
|
||||
//#define SERIAL_ECHOLN(x) Serial << "echo: "<<x<<endl;
|
||||
//#define SERIAL_ERROR(x) Serial << "Error: " << x;
|
||||
@ -41,7 +43,7 @@ const char echomagic[] PROGMEM ="echo:";
|
||||
|
||||
//things to write to serial from Programmemory. saves 400 to 2k of RAM.
|
||||
#define SerialprintPGM(x) serialprintPGM(PSTR(x))
|
||||
inline void serialprintPGM(const char *str)
|
||||
FORCE_INLINE void serialprintPGM(const char *str)
|
||||
{
|
||||
char ch=pgm_read_byte(str);
|
||||
while(ch)
|
||||
|
Reference in New Issue
Block a user