aboutsummaryrefslogtreecommitdiff
path: root/quantum/split_common
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-03-03 07:54:11 +1100
committerGitHub <noreply@github.com>2021-03-03 07:54:11 +1100
commitd950b97115269a4e7e149bf1eb9b4c6ead13cf7b (patch)
tree3acf12f792c383a7af87db82cc130b29a604402e /quantum/split_common
parentcde2859a6591b1274da20978bd158f20229faa88 (diff)
downloadqmk_firmware-d950b97115269a4e7e149bf1eb9b4c6ead13cf7b.tar.gz
qmk_firmware-d950b97115269a4e7e149bf1eb9b4c6ead13cf7b.zip
Format code according to conventions (#12088)
Co-authored-by: QMK Bot <hello@qmk.fm>
Diffstat (limited to 'quantum/split_common')
-rw-r--r--quantum/split_common/transport.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/quantum/split_common/transport.c b/quantum/split_common/transport.c
index daa60bb73..27a1c0d3a 100644
--- a/quantum/split_common/transport.c
+++ b/quantum/split_common/transport.c
@@ -203,8 +203,8 @@ void transport_slave(matrix_row_t master_matrix[], matrix_row_t slave_matrix[])
203# endif 203# endif
204 204
205# if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT) 205# if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT)
206 memcpy((void*)i2c_buffer->rgb_matrix, (void *)rgb_matrix_config, sizeof(i2c_buffer->rgb_matrix)); 206 memcpy((void *)i2c_buffer->rgb_matrix, (void *)rgb_matrix_config, sizeof(i2c_buffer->rgb_matrix));
207 memcpy((void*)i2c_buffer->rgb_suspend_state, (void *)g_suspend_state, sizeof(i2c_buffer->rgb_suspend_state)); 207 memcpy((void *)i2c_buffer->rgb_suspend_state, (void *)g_suspend_state, sizeof(i2c_buffer->rgb_suspend_state));
208# endif 208# endif
209} 209}
210 210
@@ -357,24 +357,24 @@ bool transport_master(matrix_row_t master_matrix[], matrix_row_t slave_matrix[])
357 357
358# ifdef WPM_ENABLE 358# ifdef WPM_ENABLE
359 // Write wpm to slave 359 // Write wpm to slave
360 serial_m2s_buffer.current_wpm = get_current_wpm(); 360 serial_m2s_buffer.current_wpm = get_current_wpm();
361# endif 361# endif
362 362
363# ifdef SPLIT_MODS_ENABLE 363# ifdef SPLIT_MODS_ENABLE
364 serial_m2s_buffer.real_mods = get_mods(); 364 serial_m2s_buffer.real_mods = get_mods();
365 serial_m2s_buffer.weak_mods = get_weak_mods(); 365 serial_m2s_buffer.weak_mods = get_weak_mods();
366# ifndef NO_ACTION_ONESHOT 366# ifndef NO_ACTION_ONESHOT
367 serial_m2s_buffer.oneshot_mods = get_oneshot_mods(); 367 serial_m2s_buffer.oneshot_mods = get_oneshot_mods();
368# endif 368# endif
369# endif 369# endif
370 370
371# if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT) 371# if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT)
372 serial_m2s_buffer.rgb_matrix = rgb_matrix_config; 372 serial_m2s_buffer.rgb_matrix = rgb_matrix_config;
373 serial_m2s_buffer.rgb_suspend_state = g_suspend_state; 373 serial_m2s_buffer.rgb_suspend_state = g_suspend_state;
374# endif 374# endif
375 375
376# ifndef DISABLE_SYNC_TIMER 376# ifndef DISABLE_SYNC_TIMER
377 serial_m2s_buffer.sync_timer = sync_timer_read32() + SYNC_TIMER_OFFSET; 377 serial_m2s_buffer.sync_timer = sync_timer_read32() + SYNC_TIMER_OFFSET;
378# endif 378# endif
379 return true; 379 return true;
380} 380}
@@ -414,7 +414,7 @@ void transport_slave(matrix_row_t master_matrix[], matrix_row_t slave_matrix[])
414 414
415# if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT) 415# if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT)
416 rgb_matrix_config = serial_m2s_buffer.rgb_matrix; 416 rgb_matrix_config = serial_m2s_buffer.rgb_matrix;
417 g_suspend_state = serial_m2s_buffer.rgb_suspend_state; 417 g_suspend_state = serial_m2s_buffer.rgb_suspend_state;
418# endif 418# endif
419} 419}
420 420