]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Use two spaces before inline comments
authorKonstantin Đorđević <vomindoraan@gmail.com>
Sat, 16 Feb 2019 14:26:14 +0000 (15:26 +0100)
committerKonstantin Đorđević <vomindoraan@gmail.com>
Sat, 2 Mar 2019 14:15:56 +0000 (15:15 +0100)
users/konstantin/konstantin.c
users/konstantin/rgb.h
users/konstantin/tap_dance.c

index 686ff32ecc2afc1cf8a48aa4400cc9990621e8ef..239252d9c1db5f32ecabdffc307e7696ac4d9658 100644 (file)
@@ -6,7 +6,7 @@ static void toggle_numpad(void) {
   bool numpad_on = IS_LAYER_ON(L_NUMPAD);
   bool num_lock_on = IS_HOST_LED_ON(USB_LED_NUM_LOCK);
   if (num_lock_on != numpad_on) {
-    tap_code(KC_NLCK); // Toggle Num Lock to match layer state
+    tap_code(KC_NLCK);  // Toggle Num Lock to match layer state
   }
 }
 #endif
@@ -45,7 +45,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 
   case FN_FNLK:
     if (record->event.pressed && record->tap.count == TAPPING_TOGGLE) {
-      fn_lock = !IS_LAYER_ON(L_FN); // Fn layer will be toggled after this
+      fn_lock = !IS_LAYER_ON(L_FN);  // Fn layer will be toggled after this
     }
     return true;
 #endif
index 2ea10c67a7ad9ec6e91affe010d85b1d74208196..e296cf12e7ca6e01e5770c1b967f582a52e2c298 100644 (file)
@@ -3,15 +3,15 @@
 #include "quantum.h"
 
 typedef struct {
-  uint16_t h;
-  uint8_t  s;
-  uint8_t  v;
+  uint16_t h;  // 0–360
+  uint8_t  s;  // 0–255
+  uint8_t  v;  // 0–255
 } hsv_t;
 
 typedef struct {
-  uint8_t r;
-  uint8_t g;
-  uint8_t b;
+  uint8_t r;  // 0–255
+  uint8_t g;  // 0–255
+  uint8_t b;  // 0–255
 } rgb_t;
 
 extern const hsv_t GODSPEED_BLUE;
index 81f2d42e1fb64b30e4fd7e1a27a617b6b6638fed..dffaeb20663c5c8772a9cc68a33d12502d74dd81 100644 (file)
@@ -30,7 +30,7 @@ void td_double_mods_reset(qk_tap_dance_state_t *state, void *user_data) {
 }
 
 struct {
-  bool fn_on; // Layer state when tap dance started
+  bool fn_on;  // Layer state when tap dance started
   bool started;
 } td_fn_rctrl_data;