diff options
| author | zvecr <git@zvecr.com> | 2019-11-17 14:02:26 +0000 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-11-17 08:25:58 -0800 |
| commit | a91c0c476507cb8c12840abb59bff34ab0de3c03 (patch) | |
| tree | 313d9a0ec2f17c47f33305b350eef8768b5efa1c /tmk_core/common | |
| parent | 6b18ca2875ceb38011f32f2d17238ba55ce7ad67 (diff) | |
| download | qmk_firmware-a91c0c476507cb8c12840abb59bff34ab0de3c03.tar.gz qmk_firmware-a91c0c476507cb8c12840abb59bff34ab0de3c03.zip | |
Run clang-format manually to fix recently changed files
Diffstat (limited to 'tmk_core/common')
| -rw-r--r-- | tmk_core/common/arm_atsam/suspend.c | 3 | ||||
| -rw-r--r-- | tmk_core/common/eeconfig.c | 4 | ||||
| -rw-r--r-- | tmk_core/common/host.c | 2 | ||||
| -rw-r--r-- | tmk_core/common/led.h | 10 |
4 files changed, 10 insertions, 9 deletions
diff --git a/tmk_core/common/arm_atsam/suspend.c b/tmk_core/common/arm_atsam/suspend.c index 2dad00570..d1077be4c 100644 --- a/tmk_core/common/arm_atsam/suspend.c +++ b/tmk_core/common/arm_atsam/suspend.c | |||
| @@ -7,7 +7,8 @@ | |||
| 7 | * | 7 | * |
| 8 | * FIXME: needs doc | 8 | * FIXME: needs doc |
| 9 | */ | 9 | */ |
| 10 | void suspend_idle(uint8_t time) { /* Note: Not used anywhere currently */ } | 10 | void suspend_idle(uint8_t time) { /* Note: Not used anywhere currently */ |
| 11 | } | ||
| 11 | 12 | ||
| 12 | /** \brief Run user level Power down | 13 | /** \brief Run user level Power down |
| 13 | * | 14 | * |
diff --git a/tmk_core/common/eeconfig.c b/tmk_core/common/eeconfig.c index 72f198d6c..7cec4bd7d 100644 --- a/tmk_core/common/eeconfig.c +++ b/tmk_core/common/eeconfig.c | |||
| @@ -51,10 +51,10 @@ void eeconfig_init_quantum(void) { | |||
| 51 | // TODO: Remove once ARM has a way to configure EECONFIG_HANDEDNESS | 51 | // TODO: Remove once ARM has a way to configure EECONFIG_HANDEDNESS |
| 52 | // within the emulated eeprom via dfu-util or another tool | 52 | // within the emulated eeprom via dfu-util or another tool |
| 53 | #if defined INIT_EE_HANDS_LEFT | 53 | #if defined INIT_EE_HANDS_LEFT |
| 54 | #pragma message "Faking EE_HANDS for left hand" | 54 | # pragma message "Faking EE_HANDS for left hand" |
| 55 | eeprom_update_byte(EECONFIG_HANDEDNESS, 1); | 55 | eeprom_update_byte(EECONFIG_HANDEDNESS, 1); |
| 56 | #elif defined INIT_EE_HANDS_RIGHT | 56 | #elif defined INIT_EE_HANDS_RIGHT |
| 57 | #pragma message "Faking EE_HANDS for right hand" | 57 | # pragma message "Faking EE_HANDS for right hand" |
| 58 | eeprom_update_byte(EECONFIG_HANDEDNESS, 0); | 58 | eeprom_update_byte(EECONFIG_HANDEDNESS, 0); |
| 59 | #endif | 59 | #endif |
| 60 | 60 | ||
diff --git a/tmk_core/common/host.c b/tmk_core/common/host.c index 713b0d945..e7d92cfac 100644 --- a/tmk_core/common/host.c +++ b/tmk_core/common/host.c | |||
| @@ -41,7 +41,7 @@ uint8_t host_keyboard_leds(void) { | |||
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | led_t host_keyboard_led_state(void) { | 43 | led_t host_keyboard_led_state(void) { |
| 44 | if (!driver) return (led_t) {0}; | 44 | if (!driver) return (led_t){0}; |
| 45 | return (led_t)((*driver->keyboard_leds)()); | 45 | return (led_t)((*driver->keyboard_leds)()); |
| 46 | } | 46 | } |
| 47 | 47 | ||
diff --git a/tmk_core/common/led.h b/tmk_core/common/led.h index daf974bed..990282862 100644 --- a/tmk_core/common/led.h +++ b/tmk_core/common/led.h | |||
| @@ -36,11 +36,11 @@ extern "C" { | |||
| 36 | typedef union { | 36 | typedef union { |
| 37 | uint8_t raw; | 37 | uint8_t raw; |
| 38 | struct { | 38 | struct { |
| 39 | bool num_lock : 1; | 39 | bool num_lock : 1; |
| 40 | bool caps_lock : 1; | 40 | bool caps_lock : 1; |
| 41 | bool scroll_lock : 1; | 41 | bool scroll_lock : 1; |
| 42 | bool compose : 1; | 42 | bool compose : 1; |
| 43 | bool kana : 1; | 43 | bool kana : 1; |
| 44 | uint8_t reserved : 3; | 44 | uint8_t reserved : 3; |
| 45 | }; | 45 | }; |
| 46 | } led_t; | 46 | } led_t; |
