diff options
author | Nick Brassel <nick@tzarc.org> | 2022-03-08 16:58:05 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 16:58:05 +1100 |
commit | 2f6751e48a37699cfd999e0afd8731ca3962611c (patch) | |
tree | c64605c10a8f8f758f46be209d79210bbf15c167 /quantum/split_common/transport.h | |
parent | 2218690d0b718dc68de4c5d093f1ec8e55d82d00 (diff) | |
download | qmk_firmware-2f6751e48a37699cfd999e0afd8731ca3962611c.tar.gz qmk_firmware-2f6751e48a37699cfd999e0afd8731ca3962611c.zip |
Asymmetric encoders, encoder tests. (#16068)
Diffstat (limited to 'quantum/split_common/transport.h')
-rw-r--r-- | quantum/split_common/transport.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/quantum/split_common/transport.h b/quantum/split_common/transport.h index 26bd136728..e62679990a 100644 --- a/quantum/split_common/transport.h +++ b/quantum/split_common/transport.h @@ -42,7 +42,6 @@ bool transport_execute_transaction(int8_t id, const void *initiator2target_buf, #ifdef ENCODER_ENABLE # include "encoder.h" -# define NUMBER_OF_ENCODERS (sizeof((pin_t[])ENCODERS_PAD_A) / sizeof(pin_t)) #endif // ENCODER_ENABLE #ifdef BACKLIGHT_ENABLE @@ -67,7 +66,7 @@ typedef struct _split_master_matrix_sync_t { #ifdef ENCODER_ENABLE typedef struct _split_slave_encoder_sync_t { uint8_t checksum; - uint8_t state[NUMBER_OF_ENCODERS]; + uint8_t state[NUM_ENCODERS_MAX_PER_SIDE]; } split_slave_encoder_sync_t; #endif // ENCODER_ENABLE |