]> git.donarmstrong.com Git - tmk_firmware.git/blobdiff - common/action_macro.c
Merge pull request #36 from Wraul/fix_sleep_led
[tmk_firmware.git] / common / action_macro.c
index ca7ffa822db7c103a5c552f549dafe422969713f..29cfd23df147ad43546b87b788bc24b0b8c0672b 100644 (file)
@@ -15,13 +15,20 @@ 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)
+void action_macro_play(const macro_t *macro_p)
 {
     macro_t macro = END;
     uint8_t interval = 0;
@@ -64,3 +71,4 @@ void action_macro_play(const prog_macro_t *macro_p)
         { uint8_t ms = interval; while (ms--) _delay_ms(1); }
     }
 }
+#endif