aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-06-29 16:48:36 +0900
committertmk <nobody@nowhere>2012-06-29 16:48:36 +0900
commita112f3614e0e3204ce35dcdfbf2723c3382c4c35 (patch)
tree0a39562522cc87c3deed6dc369a1fce078355a55 /common
parentf2ebac101d367ee091f54b8d43b39a4d74f3b90e (diff)
downloadqmk_firmware-a112f3614e0e3204ce35dcdfbf2723c3382c4c35.tar.gz
qmk_firmware-a112f3614e0e3204ce35dcdfbf2723c3382c4c35.zip
confirm SetReport LED.
Diffstat (limited to 'common')
-rw-r--r--common/command.c1
-rw-r--r--common/host.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/common/command.c b/common/command.c
index e325a5d84..13d37242d 100644
--- a/common/command.c
+++ b/common/command.c
@@ -138,6 +138,7 @@ static uint8_t command_common(void)
138 } 138 }
139 break; 139 break;
140 case KB_S: 140 case KB_S:
141 print("host_keyboard_leds:"); phex(host_keyboard_leds()); print("\n");
141#ifdef HOST_PJRC 142#ifdef HOST_PJRC
142 print("UDCON: "); phex(UDCON); print("\n"); 143 print("UDCON: "); phex(UDCON); print("\n");
143 print("UDIEN: "); phex(UDIEN); print("\n"); 144 print("UDIEN: "); phex(UDIEN); print("\n");
diff --git a/common/host.c b/common/host.c
index cc26d55c2..8dd2abbee 100644
--- a/common/host.c
+++ b/common/host.c
@@ -168,13 +168,16 @@ void host_mouse_send(report_mouse_t *report)
168 168
169void host_system_send(uint16_t data) 169void host_system_send(uint16_t data)
170{ 170{
171 static uint16_t last_data = 0;
172 if (data == last_data) return;
173 last_data = data;
174
171 if (!driver) return; 175 if (!driver) return;
172 (*driver->send_system)(data); 176 (*driver->send_system)(data);
173} 177}
174 178
175void host_consumer_send(uint16_t data) 179void host_consumer_send(uint16_t data)
176{ 180{
177 // TODO: this is needed?
178 static uint16_t last_data = 0; 181 static uint16_t last_data = 0;
179 if (data == last_data) return; 182 if (data == last_data) return;
180 last_data = data; 183 last_data = data;