summaryrefslogtreecommitdiff
path: root/keyboards/satan
diff options
context:
space:
mode:
authorOle Anders <git@swoy.org>2017-03-28 17:30:15 +0200
committerOle Anders <git@swoy.org>2017-03-28 17:30:15 +0200
commit411cd4fae27693324ca51eb5bf07ecebbc074c01 (patch)
tree952175c10763657e67b7fad7e287f557500ab3ad /keyboards/satan
parentf504082f7f4f2fe078cb1863b43d7ef0dc0c5c53 (diff)
moved checktime out of function
Diffstat (limited to 'keyboards/satan')
-rw-r--r--keyboards/satan/keymaps/admiralStrokers/keymap.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/keyboards/satan/keymaps/admiralStrokers/keymap.c b/keyboards/satan/keymaps/admiralStrokers/keymap.c
index b5fd2ec601..422a801ba5 100644
--- a/keyboards/satan/keymaps/admiralStrokers/keymap.c
+++ b/keyboards/satan/keymaps/admiralStrokers/keymap.c
@@ -1,6 +1,8 @@
#include "satan.h"
static uint16_t key_timer;
-bool checkTime(void);
+bool checkTime(void){
+ return (timer_elapsed(key_timer) < 150) ? true : false;
+ }
// general keydefs
#define norm 0 // Default layer
@@ -147,11 +149,6 @@ 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
- bool checkTime(void){
- return (timer_elapsed(key_timer) < 150) ? true : false;
- }
-
-
switch(id) {
case 0: //MAC0 - Hold for lshift and { on tap
if (record->event.pressed) {