format code according to conventions [skip ci] 0.7.137
authorQMK Bot <hello@qmk.fm>
Sun, 2 Feb 2020 20:47:40 +0000 (20:47 +0000)
committerQMK Bot <hello@qmk.fm>
Sun, 2 Feb 2020 20:47:40 +0000 (20:47 +0000)
tmk_core/protocol/arm_atsam/main_arm_atsam.c
tmk_core/protocol/lufa/lufa.c
tmk_core/protocol/vusb/vusb.c

index e15d51a..9c8073d 100644 (file)
@@ -131,7 +131,7 @@ void send_extra(uint8_t report_id, uint16_t data) {
 void send_system(uint16_t data) {
 #ifdef EXTRAKEY_ENABLE
     if (data != 0) data = data - SYSTEM_POWER_DOWN + 1;
-    send_extra(REPORT_ID_SYSTEM,  data);
+    send_extra(REPORT_ID_SYSTEM, data);
 #endif  // EXTRAKEY_ENABLE
 }
 
index 792db43..933b212 100644 (file)
@@ -700,7 +700,7 @@ static void send_system(uint16_t data) {
  */
 static void send_consumer(uint16_t data) {
 #ifdef EXTRAKEY_ENABLE
-    uint8_t where   = where_to_send();
+    uint8_t where = where_to_send();
 
 #    ifdef BLUETOOTH_ENABLE
     if (where == OUTPUT_BLUETOOTH || where == OUTPUT_USB_AND_BT) {
index 7126334..110b306 100644 (file)
@@ -113,10 +113,10 @@ static void send_mouse(report_mouse_t *report) {
 }
 
 static void send_extra(uint8_t report_id, uint16_t data) {
-    static uint8_t last_id    = 0;
+    static uint8_t  last_id   = 0;
     static uint16_t last_data = 0;
     if ((report_id == last_id) && (data == last_data)) return;
-    last_id = report_id;
+    last_id   = report_id;
     last_data = data;
 
     report_extra_t report = {.report_id = report_id, .usage = data};
@@ -125,13 +125,9 @@ static void send_extra(uint8_t report_id, uint16_t data) {
     }
 }
 
-static void send_system(uint16_t data) {
-    send_extra(REPORT_ID_SYSTEM, data);
-}
+static void send_system(uint16_t data) { send_extra(REPORT_ID_SYSTEM, data); }
 
-static void send_consumer(uint16_t data) {
-    send_extra(REPORT_ID_CONSUMER, data);
-}
+static void send_consumer(uint16_t data) { send_extra(REPORT_ID_CONSUMER, data); }
 
 /*------------------------------------------------------------------*
  * Request from host                                                *