diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-11-23 20:16:38 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-11-23 20:16:38 -0500 |
commit | cefa8468fb5f28bd67a0c02d371a4aef0964e20c (patch) | |
tree | 70503054c509f86b30c0279e97cf946cf6aa2353 /quantum | |
parent | 2e23689b8e3222982082c1f5a4f8ce7686f9658b (diff) | |
download | qmk_firmware-cefa8468fb5f28bd67a0c02d371a4aef0964e20c.tar.gz |
travis pls
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/quantum.c | 9 | ||||
-rw-r--r-- | quantum/quantum.h | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index f9f1ef22d..8372a7adc 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -847,8 +847,13 @@ void send_nibble(uint8_t number) { } } - - +void send_unicode_midi(uint32_t unicode) { + #ifdef MIDI_ENABLE + uint8_t chunk[4]; + dword_to_bytes(unicode, chunk); + MT_SEND_DATA(DT_UNICODE, chunk, 5); + #endif +} __attribute__ ((weak)) void led_set_user(uint8_t usb_led) { diff --git a/quantum/quantum.h b/quantum/quantum.h index 3d35f11fa..316da15b9 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h @@ -119,4 +119,6 @@ void send_nibble(uint8_t number); void led_set_user(uint8_t usb_led); void led_set_kb(uint8_t usb_led); +void send_unicode_midi(uint32_t unicode); + #endif |