From eae73437412d314a7c00b45ce11da26ffcb22e16 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 25 Mar 2021 22:30:42 +1100 Subject: [PATCH] Move `API_SYSEX_MAX_SIZE` out of `config_common.h` (#12302) --- quantum/api/api_sysex.h | 2 ++ quantum/config_common.h | 2 -- 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 @@ #include "api.h" +#define API_SYSEX_MAX_SIZE 32 + void send_bytes_sysex(uint8_t message_type, uint8_t data_type, uint8_t* bytes, uint16_t length); #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 @@ #define COL2ROW 0 #define ROW2COL 1 -#define API_SYSEX_MAX_SIZE 32 - #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 @@ #include "usb_descriptor.h" #include "process_midi.h" #if API_SYSEX_ENABLE -# include "api.h" +# include "api_sysex.h" #endif /*******************************************************************************