X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Faction_macro.h;h=aedc32ec6b2c428e53cd24d3d5c105eb1f1143eb;hb=c67ae2a6b546c822759352586c14cd9dccbbe0ff;hp=621826308858c93b589013d25e4330a84683046d;hpb=04fe78ee0a7fe9baed39f021799a3dbb24ebeb36;p=tmk_firmware.git
diff --git a/common/action_macro.h b/common/action_macro.h
index 6218263..aedc32e 100644
--- a/common/action_macro.h
+++ b/common/action_macro.h
@@ -17,12 +17,12 @@ along with this program. If not, see .
#ifndef ACTION_MACRO_H
#define ACTION_MACRO_H
#include
-#include
+#include "progmem.h"
-#define MACRO_NONE 0
-#define MACRO(...) ({ static const macro_t __m[] PROGMEM = { __VA_ARGS__ }; &__m[0]; })
-
+#define MACRO_NONE 0
+#define MACRO(...) ({ static const macro_t __m[] PROGMEM = { __VA_ARGS__ }; &__m[0]; })
+#define MACRO_GET(p) pgm_read_byte(p)
typedef uint8_t macro_t;