浏览代码

moved checktime out of function

Ole Anders 8 年之前
父节点
当前提交
411cd4fae2
共有 1 个文件被更改,包括 3 次插入6 次删除
  1. 3 6
      keyboards/satan/keymaps/admiralStrokers/keymap.c

+ 3 - 6
keyboards/satan/keymaps/admiralStrokers/keymap.c

@@ -1,6 +1,8 @@
 #include "satan.h"
 #include "satan.h"
 static uint16_t key_timer;
 static uint16_t key_timer;
-bool checkTime(void);
+bool checkTime(void){
+		return (timer_elapsed(key_timer) < 150) ? true : false;
+	}
 
 
 // general keydefs
 // general keydefs
 #define norm 0		// Default layer
 #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
 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) {
     switch(id) {
         case 0: //MAC0 - Hold for lshift and { on tap
         case 0: //MAC0 - Hold for lshift and { on tap
 					if (record->event.pressed) {
 					if (record->event.pressed) {