force inline
This commit is contained in:
parent
f8e170a44b
commit
26a1de1e44
8 changed files with 59 additions and 52 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue