diff options
| author | Drashna Jaelre <drashna@live.com> | 2019-07-16 01:40:54 -0700 |
|---|---|---|
| committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-07-16 01:40:54 -0700 |
| commit | f6c7e114260890292dcd12645db7fecd64167973 (patch) | |
| tree | 0edeec134b20c100e793886d7b5b55f0e1917c19 /quantum/split_common/transport.c | |
| parent | 97a3f806c4740213d7b133f0be7c2f51d228593b (diff) | |
| download | qmk_firmware-f6c7e114260890292dcd12645db7fecd64167973.tar.gz qmk_firmware-f6c7e114260890292dcd12645db7fecd64167973.zip | |
Remove the need to specify NUM_OF_ENCODERS for the Encoder feature (#6328)
* Remove the need to set NUM_OF_ENCODERS
Instead, calculate the size of the array, and use that instead
* Add hack for split common support
* Remove NUM_OF_ENCODERS from keyboard config
Can be reverted, if needed
Diffstat (limited to 'quantum/split_common/transport.c')
| -rw-r--r-- | quantum/split_common/transport.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/quantum/split_common/transport.c b/quantum/split_common/transport.c index b32d48eb8..ba21d0c7b 100644 --- a/quantum/split_common/transport.c +++ b/quantum/split_common/transport.c | |||
| @@ -17,6 +17,8 @@ | |||
| 17 | 17 | ||
| 18 | #ifdef ENCODER_ENABLE | 18 | #ifdef ENCODER_ENABLE |
| 19 | # include "encoder.h" | 19 | # include "encoder.h" |
| 20 | static pin_t encoders_pad[] = ENCODERS_PAD_A; | ||
| 21 | # define NUMBER_OF_ENCODERS (sizeof(encoders_pad)/sizeof(pin_t)) | ||
| 20 | #endif | 22 | #endif |
| 21 | 23 | ||
| 22 | #if defined(USE_I2C) || defined(EH) | 24 | #if defined(USE_I2C) || defined(EH) |
