From 35f9f30074263a2a738cbfc513fca6d812ddf6ff Mon Sep 17 00:00:00 2001
From: tmk <nobody@nowhere>
Date: Mon, 7 Oct 2013 23:28:17 +0900
Subject: Add timeout option to MODS_ONESHOT #66

---
 keyboard/hhkb/Makefile | 6 ++++--
 keyboard/hhkb/config.h | 3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

(limited to 'keyboard')

diff --git a/keyboard/hhkb/Makefile b/keyboard/hhkb/Makefile
index 34bafc24fc..94078702c4 100644
--- a/keyboard/hhkb/Makefile
+++ b/keyboard/hhkb/Makefile
@@ -128,6 +128,8 @@ include $(TOP_DIR)/protocol/lufa.mk
 include $(TOP_DIR)/common.mk
 include $(TOP_DIR)/rules.mk
 
-debug-on: EXTRAFLAGS += -DDEBUG
-#debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION
+debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION
 debug-on: all
+
+debug-off: EXTRAFLAGS += -DNO_DEBUG -DNO_PRINT
+debug-off: all
diff --git a/keyboard/hhkb/config.h b/keyboard/hhkb/config.h
index 83a911beab..a8f76ae6b0 100644
--- a/keyboard/hhkb/config.h
+++ b/keyboard/hhkb/config.h
@@ -40,7 +40,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define TAPPING_TERM    300
 /* tap count needed for toggling a feature */
 #define TAPPING_TOGGLE  5
-
+/* Oneshot timeout(ms) */
+#define ONESHOT_TIMEOUT 300
 
 /* Boot Magic salt key: Space */
 #define BOOTMAGIC_KEY_SALT      KC_FN6
-- 
cgit v1.2.3