]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - common/action_macro.c
Fix makefile, debug print and keymap of HHKB
[max/tmk_keyboard.git] / common / action_macro.c
index ca7ffa822db7c103a5c552f549dafe422969713f..71d1506f5cabbe6e16392f8a0c6f1c9f4b105f7e 100644 (file)
@@ -15,10 +15,17 @@ You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 #include <util/delay.h>
-#include "debug.h"
 #include "action.h"
 #include "action_macro.h"
 
+#ifdef DEBUG_ACTION
+#include "debug.h"
+#else
+#include "nodebug.h"
+#endif
+
+
+#ifndef NO_ACTION_MACRO
 
 #define MACRO_READ()  (macro = pgm_read_byte(macro_p++))
 void action_macro_play(const prog_macro_t *macro_p)
@@ -64,3 +71,4 @@ void action_macro_play(const prog_macro_t *macro_p)
         { uint8_t ms = interval; while (ms--) _delay_ms(1); }
     }
 }
+#endif