aboutsummaryrefslogtreecommitdiff
path: root/users/konstantin
diff options
context:
space:
mode:
authorKonstantin Đorđević <vomindoraan@gmail.com>2019-02-16 15:26:14 +0100
committerKonstantin Đorđević <vomindoraan@gmail.com>2019-03-02 15:15:56 +0100
commitbd43df53bdf0009a152251582a05046bbefb0858 (patch)
tree6b226deb525ed1538436ac7fb734a239130d3eb0 /users/konstantin
parent5a41c06cd7dcf04f5a27ac9b2fa95399c65367d6 (diff)
downloadqmk_firmware-bd43df53bdf0009a152251582a05046bbefb0858.tar.gz
qmk_firmware-bd43df53bdf0009a152251582a05046bbefb0858.zip
Use two spaces before inline comments
Diffstat (limited to 'users/konstantin')
-rw-r--r--users/konstantin/konstantin.c4
-rw-r--r--users/konstantin/rgb.h12
-rw-r--r--users/konstantin/tap_dance.c2
3 files changed, 9 insertions, 9 deletions
diff --git a/users/konstantin/konstantin.c b/users/konstantin/konstantin.c
index 686ff32ec..239252d9c 100644
--- a/users/konstantin/konstantin.c
+++ b/users/konstantin/konstantin.c
@@ -6,7 +6,7 @@ static void toggle_numpad(void) {
6 bool numpad_on = IS_LAYER_ON(L_NUMPAD); 6 bool numpad_on = IS_LAYER_ON(L_NUMPAD);
7 bool num_lock_on = IS_HOST_LED_ON(USB_LED_NUM_LOCK); 7 bool num_lock_on = IS_HOST_LED_ON(USB_LED_NUM_LOCK);
8 if (num_lock_on != numpad_on) { 8 if (num_lock_on != numpad_on) {
9 tap_code(KC_NLCK); // Toggle Num Lock to match layer state 9 tap_code(KC_NLCK); // Toggle Num Lock to match layer state
10 } 10 }
11} 11}
12#endif 12#endif
@@ -45,7 +45,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
45 45
46 case FN_FNLK: 46 case FN_FNLK:
47 if (record->event.pressed && record->tap.count == TAPPING_TOGGLE) { 47 if (record->event.pressed && record->tap.count == TAPPING_TOGGLE) {
48 fn_lock = !IS_LAYER_ON(L_FN); // Fn layer will be toggled after this 48 fn_lock = !IS_LAYER_ON(L_FN); // Fn layer will be toggled after this
49 } 49 }
50 return true; 50 return true;
51#endif 51#endif
diff --git a/users/konstantin/rgb.h b/users/konstantin/rgb.h
index 2ea10c67a..e296cf12e 100644
--- a/users/konstantin/rgb.h
+++ b/users/konstantin/rgb.h
@@ -3,15 +3,15 @@
3#include "quantum.h" 3#include "quantum.h"
4 4
5typedef struct { 5typedef struct {
6 uint16_t h; 6 uint16_t h; // 0–360
7 uint8_t s; 7 uint8_t s; // 0–255
8 uint8_t v; 8 uint8_t v; // 0–255
9} hsv_t; 9} hsv_t;
10 10
11typedef struct { 11typedef struct {
12 uint8_t r; 12 uint8_t r; // 0–255
13 uint8_t g; 13 uint8_t g; // 0–255
14 uint8_t b; 14 uint8_t b; // 0–255
15} rgb_t; 15} rgb_t;
16 16
17extern const hsv_t GODSPEED_BLUE; 17extern const hsv_t GODSPEED_BLUE;
diff --git a/users/konstantin/tap_dance.c b/users/konstantin/tap_dance.c
index 81f2d42e1..dffaeb206 100644
--- a/users/konstantin/tap_dance.c
+++ b/users/konstantin/tap_dance.c
@@ -30,7 +30,7 @@ void td_double_mods_reset(qk_tap_dance_state_t *state, void *user_data) {
30} 30}
31 31
32struct { 32struct {
33 bool fn_on; // Layer state when tap dance started 33 bool fn_on; // Layer state when tap dance started
34 bool started; 34 bool started;
35} td_fn_rctrl_data; 35} td_fn_rctrl_data;
36 36