summary refs log tree commit diff
path: root/quantum/process_keycode/process_auto_shift.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2020-08-29 22:57:48 +0000
committerQMK Bot <hello@qmk.fm>2020-08-29 22:57:48 +0000
commita3db72df7299140e52f57d082a3742a8b480a226 (patch)
tree41d62db0fecd2eb0aeae1744b52e677555e55288 /quantum/process_keycode/process_auto_shift.c
parent000eb14d789f84afc7dbd33955dbfb6481792f0b (diff)
format code according to conventions [skip ci]
Diffstat (limited to 'quantum/process_keycode/process_auto_shift.c')
-rw-r--r--quantum/process_keycode/process_auto_shift.c35
1 files changed, 17 insertions, 18 deletions
diff --git a/quantum/process_keycode/process_auto_shift.c b/quantum/process_keycode/process_auto_shift.c
index 330037cefb..b1267922ce 100644
--- a/quantum/process_keycode/process_auto_shift.c
+++ b/quantum/process_keycode/process_auto_shift.c
@@ -41,34 +41,34 @@ void autoshift_flush(void) {
 }
 
 void autoshift_on(uint16_t keycode) {
-  autoshift_time    = timer_read();
-  autoshift_lastkey = keycode;
+    autoshift_time    = timer_read();
+    autoshift_lastkey = keycode;
 }
 
 void autoshift_toggle(void) {
-  if (autoshift_enabled) {
-    autoshift_enabled = false;
-    autoshift_flush();
-  } else {
-    autoshift_enabled = true;
-  }
+    if (autoshift_enabled) {
+        autoshift_enabled = false;
+        autoshift_flush();
+    } else {
+        autoshift_enabled = true;
+    }
 }
 
 void autoshift_enable(void) { autoshift_enabled = true; }
 void autoshift_disable(void) {
-  autoshift_enabled = false;
-  autoshift_flush();
+    autoshift_enabled = false;
+    autoshift_flush();
 }
 
-#ifndef AUTO_SHIFT_NO_SETUP
+#    ifndef AUTO_SHIFT_NO_SETUP
 void autoshift_timer_report(void) {
-  char display[8];
+    char display[8];
 
-  snprintf(display, 8, "\n%d\n", autoshift_timeout);
+    snprintf(display, 8, "\n%d\n", autoshift_timeout);
 
-  send_string((const char *)display);
+    send_string((const char *)display);
 }
-#endif
+#    endif
 
 bool get_autoshift_state(void) { return autoshift_enabled; }
 
@@ -79,7 +79,6 @@ void set_autoshift_timeout(uint16_t timeout) { autoshift_timeout = timeout; }
 bool process_auto_shift(uint16_t keycode, keyrecord_t *record) {
     if (record->event.pressed) {
         switch (keycode) {
-
             case KC_ASTG:
                 autoshift_toggle();
                 return true;
@@ -92,10 +91,10 @@ bool process_auto_shift(uint16_t keycode, keyrecord_t *record) {
                 return true;
 
 #    ifndef AUTO_SHIFT_NO_SETUP
-                case KC_ASUP:
+            case KC_ASUP:
                 autoshift_timeout += 5;
                 return true;
-                case KC_ASDN:
+            case KC_ASDN:
                 autoshift_timeout -= 5;
                 return true;