diff options
| author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-04-22 19:26:17 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-22 19:26:17 +1000 |
| commit | 15ff1927dbb01542de895cf8c6c91b69591893ca (patch) | |
| tree | a39b6b8869d4ae514452d5d127b6ce737c67b388 /quantum | |
| parent | d6ab908272e7f8f391b19aee0c8a9dce9b24f511 (diff) | |
| download | qmk_firmware-15ff1927dbb01542de895cf8c6c91b69591893ca.tar.gz qmk_firmware-15ff1927dbb01542de895cf8c6c91b69591893ca.zip | |
[CI] Format code according to conventions (#12650)
Co-authored-by: QMK Bot <hello@qmk.fm>
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/led_matrix.c | 8 | ||||
| -rw-r--r-- | quantum/split_common/transport.c | 30 |
2 files changed, 19 insertions, 19 deletions
diff --git a/quantum/led_matrix.c b/quantum/led_matrix.c index 890573022..72eb5190b 100644 --- a/quantum/led_matrix.c +++ b/quantum/led_matrix.c | |||
| @@ -142,11 +142,11 @@ void led_matrix_set_value(int index, uint8_t value) { | |||
| 142 | # endif | 142 | # endif |
| 143 | else if (is_keyboard_left() && index < k_led_matrix_split[0]) | 143 | else if (is_keyboard_left() && index < k_led_matrix_split[0]) |
| 144 | #endif | 144 | #endif |
| 145 | # ifdef USE_CIE1931_CURVE | 145 | #ifdef USE_CIE1931_CURVE |
| 146 | led_matrix_driver.set_value(index, pgm_read_byte(&CIE1931_CURVE[value])); | 146 | led_matrix_driver.set_value(index, pgm_read_byte(&CIE1931_CURVE[value])); |
| 147 | # else | 147 | #else |
| 148 | led_matrix_driver.set_value(index, value); | 148 | led_matrix_driver.set_value(index, value); |
| 149 | # endif | 149 | #endif |
| 150 | } | 150 | } |
| 151 | 151 | ||
| 152 | void led_matrix_set_value_all(uint8_t value) { | 152 | void led_matrix_set_value_all(uint8_t value) { |
diff --git a/quantum/split_common/transport.c b/quantum/split_common/transport.c index 7ea925b51..b67702f15 100644 --- a/quantum/split_common/transport.c +++ b/quantum/split_common/transport.c | |||
| @@ -216,8 +216,8 @@ void transport_slave(matrix_row_t master_matrix[], matrix_row_t slave_matrix[]) | |||
| 216 | # endif | 216 | # endif |
| 217 | 217 | ||
| 218 | # if defined(LED_MATRIX_ENABLE) && defined(LED_MATRIX_SPLIT) | 218 | # if defined(LED_MATRIX_ENABLE) && defined(LED_MATRIX_SPLIT) |
| 219 | memcpy((void*)i2c_buffer->led_matrix, (void *)led_matrix_eeconfig, sizeof(i2c_buffer->led_matrix)); | 219 | memcpy((void *)i2c_buffer->led_matrix, (void *)led_matrix_eeconfig, sizeof(i2c_buffer->led_matrix)); |
| 220 | memcpy((void*)i2c_buffer->led_suspend_state, (void *)g_suspend_state, sizeof(i2c_buffer->led_suspend_state)); | 220 | memcpy((void *)i2c_buffer->led_suspend_state, (void *)g_suspend_state, sizeof(i2c_buffer->led_suspend_state)); |
| 221 | # endif | 221 | # endif |
| 222 | # if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT) | 222 | # if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT) |
| 223 | memcpy((void *)i2c_buffer->rgb_matrix, (void *)rgb_matrix_config, sizeof(i2c_buffer->rgb_matrix)); | 223 | memcpy((void *)i2c_buffer->rgb_matrix, (void *)rgb_matrix_config, sizeof(i2c_buffer->rgb_matrix)); |
| @@ -245,31 +245,31 @@ typedef struct _Serial_s2m_buffer_t { | |||
| 245 | 245 | ||
| 246 | typedef struct _Serial_m2s_buffer_t { | 246 | typedef struct _Serial_m2s_buffer_t { |
| 247 | # ifdef SPLIT_MODS_ENABLE | 247 | # ifdef SPLIT_MODS_ENABLE |
| 248 | uint8_t real_mods; | 248 | uint8_t real_mods; |
| 249 | uint8_t weak_mods; | 249 | uint8_t weak_mods; |
| 250 | # ifndef NO_ACTION_ONESHOT | 250 | # ifndef NO_ACTION_ONESHOT |
| 251 | uint8_t oneshot_mods; | 251 | uint8_t oneshot_mods; |
| 252 | # endif | 252 | # endif |
| 253 | # endif | 253 | # endif |
| 254 | # ifndef DISABLE_SYNC_TIMER | 254 | # ifndef DISABLE_SYNC_TIMER |
| 255 | uint32_t sync_timer; | 255 | uint32_t sync_timer; |
| 256 | # endif | 256 | # endif |
| 257 | # ifdef SPLIT_TRANSPORT_MIRROR | 257 | # ifdef SPLIT_TRANSPORT_MIRROR |
| 258 | matrix_row_t mmatrix[ROWS_PER_HAND]; | 258 | matrix_row_t mmatrix[ROWS_PER_HAND]; |
| 259 | # endif | 259 | # endif |
| 260 | # ifdef BACKLIGHT_ENABLE | 260 | # ifdef BACKLIGHT_ENABLE |
| 261 | uint8_t backlight_level; | 261 | uint8_t backlight_level; |
| 262 | # endif | 262 | # endif |
| 263 | # ifdef WPM_ENABLE | 263 | # ifdef WPM_ENABLE |
| 264 | uint8_t current_wpm; | 264 | uint8_t current_wpm; |
| 265 | # endif | 265 | # endif |
| 266 | # if defined(LED_MATRIX_ENABLE) && defined(LED_MATRIX_SPLIT) | 266 | # if defined(LED_MATRIX_ENABLE) && defined(LED_MATRIX_SPLIT) |
| 267 | led_eeconfig_t led_matrix; | 267 | led_eeconfig_t led_matrix; |
| 268 | bool led_suspend_state; | 268 | bool led_suspend_state; |
| 269 | # endif | 269 | # endif |
| 270 | # if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT) | 270 | # if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT) |
| 271 | rgb_config_t rgb_matrix; | 271 | rgb_config_t rgb_matrix; |
| 272 | bool rgb_suspend_state; | 272 | bool rgb_suspend_state; |
| 273 | # endif | 273 | # endif |
| 274 | } Serial_m2s_buffer_t; | 274 | } Serial_m2s_buffer_t; |
| 275 | 275 | ||
| @@ -390,7 +390,7 @@ bool transport_master(matrix_row_t master_matrix[], matrix_row_t slave_matrix[]) | |||
| 390 | # endif | 390 | # endif |
| 391 | 391 | ||
| 392 | # if defined(LED_MATRIX_ENABLE) && defined(LED_MATRIX_SPLIT) | 392 | # if defined(LED_MATRIX_ENABLE) && defined(LED_MATRIX_SPLIT) |
| 393 | serial_m2s_buffer.led_matrix = led_matrix_econfig; | 393 | serial_m2s_buffer.led_matrix = led_matrix_econfig; |
| 394 | serial_m2s_buffer.led_suspend_state = g_suspend_state; | 394 | serial_m2s_buffer.led_suspend_state = g_suspend_state; |
| 395 | # endif | 395 | # endif |
| 396 | # if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT) | 396 | # if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT) |
| @@ -439,11 +439,11 @@ void transport_slave(matrix_row_t master_matrix[], matrix_row_t slave_matrix[]) | |||
| 439 | 439 | ||
| 440 | # if defined(LED_MATRIX_ENABLE) && defined(LED_MATRIX_SPLIT) | 440 | # if defined(LED_MATRIX_ENABLE) && defined(LED_MATRIX_SPLIT) |
| 441 | led_matrix_eeconfig = serial_m2s_buffer.led_matrix; | 441 | led_matrix_eeconfig = serial_m2s_buffer.led_matrix; |
| 442 | g_suspend_state = serial_m2s_buffer.led_suspend_state; | 442 | g_suspend_state = serial_m2s_buffer.led_suspend_state; |
| 443 | # endif | 443 | # endif |
| 444 | # if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT) | 444 | # if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT) |
| 445 | rgb_matrix_config = serial_m2s_buffer.rgb_matrix; | 445 | rgb_matrix_config = serial_m2s_buffer.rgb_matrix; |
| 446 | g_suspend_state = serial_m2s_buffer.rgb_suspend_state; | 446 | g_suspend_state = serial_m2s_buffer.rgb_suspend_state; |
| 447 | # endif | 447 | # endif |
| 448 | } | 448 | } |
| 449 | 449 | ||
