summaryrefslogtreecommitdiff
path: root/keyboard/hhkb
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-10-07 23:28:17 +0900
committertmk <nobody@nowhere>2013-10-07 23:28:17 +0900
commit35f9f30074263a2a738cbfc513fca6d812ddf6ff (patch)
treebec1e4e96a58eb14feef42b8b1f2057d07ff476a /keyboard/hhkb
parentd52d554360d3bf06189bfd4f386fa99348d8a0a8 (diff)
Add timeout option to MODS_ONESHOT #66
Diffstat (limited to 'keyboard/hhkb')
-rw-r--r--keyboard/hhkb/Makefile6
-rw-r--r--keyboard/hhkb/config.h3
2 files changed, 6 insertions, 3 deletions
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