diff options
| author | Balz Guenat <balz.guenat@gmail.com> | 2021-11-20 21:09:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-20 20:09:21 +0000 |
| commit | 06f18e22d9aff0afa4dce101a6a1b2cae5511365 (patch) | |
| tree | 4e792d5d9e5056b17d5feaf822b6d4b839e0bffb /quantum | |
| parent | 5c2052fd476cb1d15eab66c23016a1add93f6767 (diff) | |
| download | qmk_firmware-06f18e22d9aff0afa4dce101a6a1b2cae5511365.tar.gz qmk_firmware-06f18e22d9aff0afa4dce101a6a1b2cae5511365.zip | |
fix broken macro in transport.h (#15239)
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/split_common/transport.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/quantum/split_common/transport.h b/quantum/split_common/transport.h index ab65ff56d..437d4bc1f 100644 --- a/quantum/split_common/transport.h +++ b/quantum/split_common/transport.h | |||
| @@ -41,12 +41,13 @@ 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" | ||
| 44 | # include "encoder.h" | 45 | # include "encoder.h" |
| 45 | // if no pads for right half are defined, we assume the keyboard is symmetric (i.e. same pads) | 46 | // if no pads for right half are defined, we assume the keyboard is symmetric (i.e. same pads) |
| 46 | # ifndef ENCODERS_PAD_A_RIGHT | 47 | # ifndef ENCODERS_PAD_A_RIGHT |
| 47 | # define ENCODERS_PAD_A_RIGHT ENCODERS_PAD_A | 48 | # define ENCODERS_PAD_A_RIGHT ENCODERS_PAD_A |
| 48 | # endif | 49 | # endif |
| 49 | # define NUMBER_OF_ENCODERS ((sizeof((pin_t[])ENCODERS_PAD_A) + (sizeof((pin_t[])ENCODERS_PAD_A_RIGHT)) / sizeof(pin_t)) | 50 | # define NUMBER_OF_ENCODERS ((sizeof((pin_t[])ENCODERS_PAD_A) + sizeof((pin_t[])ENCODERS_PAD_A_RIGHT)) / sizeof(pin_t)) |
| 50 | #endif // ENCODER_ENABLE | 51 | #endif // ENCODER_ENABLE |
| 51 | 52 | ||
| 52 | #ifdef BACKLIGHT_ENABLE | 53 | #ifdef BACKLIGHT_ENABLE |
