diff options
author | Drashna Jaelre <drashna@live.com> | 2021-11-26 19:40:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-27 14:40:09 +1100 |
commit | 4d0dd1eab78c7f2af40a84a34da12a2a8398fda9 (patch) | |
tree | 89dc2cd405878458e6b1f84e51e2bd8575309ef1 /quantum/split_common/transport.h | |
parent | 94d7cc371265a2838fb44508bdc34d8be59a11eb (diff) | |
download | qmk_firmware-4d0dd1eab78c7f2af40a84a34da12a2a8398fda9.tar.gz qmk_firmware-4d0dd1eab78c7f2af40a84a34da12a2a8398fda9.zip |
[Bug] Revert Assymmetrical Split Encoder support (#12090) (#15311)
* Revert "fix broken macro in transport.h (#15239)"
This reverts commit 06f18e22d9aff0afa4dce101a6a1b2cae5511365.
* Revert "Rework encoders to enable asymmetric split keyboards (#12090)"
This reverts commit 32215d5bff52262542a2f8d2a221b0303f02c019.
Diffstat (limited to 'quantum/split_common/transport.h')
-rw-r--r-- | quantum/split_common/transport.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/quantum/split_common/transport.h b/quantum/split_common/transport.h index 437d4bc1f..1d4f6ed0c 100644 --- a/quantum/split_common/transport.h +++ b/quantum/split_common/transport.h | |||
@@ -41,13 +41,8 @@ void transport_slave(matrix_row_t master_matrix[], matrix_row_t slave_matrix[]); | |||
41 | bool transport_execute_transaction(int8_t id, const void *initiator2target_buf, uint16_t initiator2target_length, void *target2initiator_buf, uint16_t target2initiator_length); | 41 | bool transport_execute_transaction(int8_t id, const void *initiator2target_buf, uint16_t initiator2target_length, void *target2initiator_buf, uint16_t target2initiator_length); |
42 | 42 | ||
43 | #ifdef ENCODER_ENABLE | 43 | #ifdef ENCODER_ENABLE |
44 | # include "gpio.h" | ||
45 | # include "encoder.h" | 44 | # include "encoder.h" |
46 | // if no pads for right half are defined, we assume the keyboard is symmetric (i.e. same pads) | 45 | # define NUMBER_OF_ENCODERS (sizeof((pin_t[])ENCODERS_PAD_A) / sizeof(pin_t)) |
47 | # ifndef ENCODERS_PAD_A_RIGHT | ||
48 | # define ENCODERS_PAD_A_RIGHT ENCODERS_PAD_A | ||
49 | # endif | ||
50 | # define NUMBER_OF_ENCODERS ((sizeof((pin_t[])ENCODERS_PAD_A) + sizeof((pin_t[])ENCODERS_PAD_A_RIGHT)) / sizeof(pin_t)) | ||
51 | #endif // ENCODER_ENABLE | 46 | #endif // ENCODER_ENABLE |
52 | 47 | ||
53 | #ifdef BACKLIGHT_ENABLE | 48 | #ifdef BACKLIGHT_ENABLE |