diff options
| author | Ryan <fauxpark@gmail.com> | 2021-03-25 22:30:42 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-25 22:30:42 +1100 |
| commit | eae73437412d314a7c00b45ce11da26ffcb22e16 (patch) | |
| tree | 8301a29bc79fa3e20a0ec8d4de5fcca9a28c27a0 | |
| parent | c59fb1b477c4877fc29aeec8fe5f98dbf8788369 (diff) | |
| download | qmk_firmware-eae73437412d314a7c00b45ce11da26ffcb22e16.tar.gz qmk_firmware-eae73437412d314a7c00b45ce11da26ffcb22e16.zip | |
Move `API_SYSEX_MAX_SIZE` out of `config_common.h` (#12302)
| -rw-r--r-- | quantum/api/api_sysex.h | 2 | ||||
| -rw-r--r-- | quantum/config_common.h | 2 | ||||
| -rw-r--r-- | tmk_core/protocol/midi/qmk_midi.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/quantum/api/api_sysex.h b/quantum/api/api_sysex.h index 382f4bea4..eb0a18848 100644 --- a/quantum/api/api_sysex.h +++ b/quantum/api/api_sysex.h | |||
| @@ -18,6 +18,8 @@ | |||
| 18 | 18 | ||
| 19 | #include "api.h" | 19 | #include "api.h" |
| 20 | 20 | ||
| 21 | #define API_SYSEX_MAX_SIZE 32 | ||
| 22 | |||
| 21 | void send_bytes_sysex(uint8_t message_type, uint8_t data_type, uint8_t* bytes, uint16_t length); | 23 | void send_bytes_sysex(uint8_t message_type, uint8_t data_type, uint8_t* bytes, uint16_t length); |
| 22 | 24 | ||
| 23 | #define SEND_BYTES(mt, dt, b, l) send_bytes_sysex(mt, dt, b, l) | 25 | #define SEND_BYTES(mt, dt, b, l) send_bytes_sysex(mt, dt, b, l) |
diff --git a/quantum/config_common.h b/quantum/config_common.h index fa1ff2a5f..d93477b27 100644 --- a/quantum/config_common.h +++ b/quantum/config_common.h | |||
| @@ -24,6 +24,4 @@ | |||
| 24 | #define COL2ROW 0 | 24 | #define COL2ROW 0 |
| 25 | #define ROW2COL 1 | 25 | #define ROW2COL 1 |
| 26 | 26 | ||
| 27 | #define API_SYSEX_MAX_SIZE 32 | ||
| 28 | |||
| 29 | #include "song_list.h" | 27 | #include "song_list.h" |
diff --git a/tmk_core/protocol/midi/qmk_midi.c b/tmk_core/protocol/midi/qmk_midi.c index 6f6aced72..c18dbf993 100644 --- a/tmk_core/protocol/midi/qmk_midi.c +++ b/tmk_core/protocol/midi/qmk_midi.c | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | #include "usb_descriptor.h" | 5 | #include "usb_descriptor.h" |
| 6 | #include "process_midi.h" | 6 | #include "process_midi.h" |
| 7 | #if API_SYSEX_ENABLE | 7 | #if API_SYSEX_ENABLE |
| 8 | # include "api.h" | 8 | # include "api_sysex.h" |
| 9 | #endif | 9 | #endif |
| 10 | 10 | ||
| 11 | /******************************************************************************* | 11 | /******************************************************************************* |
