summaryrefslogtreecommitdiffstats
path: root/keyboards/satan/keymaps
diff options
context:
space:
mode:
authorOle Anders <git@swoy.org>2017-03-28 16:50:44 +0200
committerOle Anders <git@swoy.org>2017-03-28 16:50:44 +0200
commitc72ca58528671eb582a1a7360407fd9347c9735b (patch)
tree5f03591f3d493ea3e0d68fc3172ac6c44baa81f9 /keyboards/satan/keymaps
parent48dfc77718bf115c6d65257b07e8d87304c23d8f (diff)
downloadqmk_firmware-c72ca58528671eb582a1a7360407fd9347c9735b.tar.gz
qmk_firmware-c72ca58528671eb582a1a7360407fd9347c9735b.tar.xz
Moved key_timer out of function.
Diffstat (limited to 'keyboards/satan/keymaps')
-rw-r--r--keyboards/satan/keymaps/admiralStrokers/keymap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/keyboards/satan/keymaps/admiralStrokers/keymap.c b/keyboards/satan/keymaps/admiralStrokers/keymap.c
index 97a0f225d..4bd49aaad 100644
--- a/keyboards/satan/keymaps/admiralStrokers/keymap.c
+++ b/keyboards/satan/keymaps/admiralStrokers/keymap.c
@@ -1,13 +1,14 @@
#include "satan.h"
+static uint16_t key_timer;
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// general keydefs
#define norm 0 // Default layer
#define elev 1 // Layer directional keys
#define supr 2 // F-keys and mediakeys
-#define spac 3
+#define spac 3 //
#define FNO1 4 //
#define FNO2 5 //
-#define FNO3 6 //
+#define FNO3 6 //
#define MAC0 M(0) //
#define MAC1 M(1) //
#define MAC2 M(2) //
@@ -143,7 +144,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { // MACRODOWN only works in this function
- static uint16_t key_timer;
+
bool checkTime(){
return (timer_elapsed(key_timer) < 150) ? true : false;
}