From 6d45e05ede8ea1a96df9a04d58a7d7ede51afd9b Mon Sep 17 00:00:00 2001
From: tmk <nobody@nowhere>
Date: Tue, 31 May 2011 21:17:56 +0900
Subject: Added PS/2 multimeda key support. HID Consumer page and System
 control are also supported now. merged mediakey branch:
 d53a356cd2011b461843a5c7c1527a61692893c1

---
 pjrc/host.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

(limited to 'pjrc/host.c')

diff --git a/pjrc/host.c b/pjrc/host.c
index 2a81e4c5ea..ee933ceed3 100644
--- a/pjrc/host.c
+++ b/pjrc/host.c
@@ -117,14 +117,18 @@ void host_mouse_send(report_mouse_t *report)
 #endif
 
 #ifdef USB_EXTRA_ENABLE
-void host_system_send(uint8_t data)
+void host_system_send(uint16_t data)
 {
     usb_extra_system_send(data);
 }
 
-void host_audio_send(uint8_t data)
+void host_consumer_send(uint16_t data)
 {
-    usb_extra_audio_send(data);
+    static uint16_t last_data = 0;
+    if (data == last_data) return;
+    last_data = data;
+
+    usb_extra_consumer_send(data);
 }
 #endif
 
-- 
cgit v1.2.3