summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-11-23 20:16:38 -0500
committerJack Humbert <jack.humb@gmail.com>2016-11-23 20:16:38 -0500
commitcefa8468fb5f28bd67a0c02d371a4aef0964e20c (patch)
tree70503054c509f86b30c0279e97cf946cf6aa2353 /quantum
parent2e23689b8e3222982082c1f5a4f8ce7686f9658b (diff)
travis pls
Diffstat (limited to 'quantum')
-rw-r--r--quantum/quantum.c9
-rw-r--r--quantum/quantum.h2
2 files changed, 9 insertions, 2 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index f9f1ef22d0..8372a7adc5 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 3d35f11fad..316da15b9a 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