aboutsummaryrefslogtreecommitdiffstats
path: root/common/host.c
diff options
context:
space:
mode:
authorGravatar tmk <nobody@nowhere>2012-06-29 16:48:36 +0900
committerGravatar tmk <nobody@nowhere>2012-06-29 16:48:36 +0900
commita112f3614e0e3204ce35dcdfbf2723c3382c4c35 (patch)
tree0a39562522cc87c3deed6dc369a1fce078355a55 /common/host.c
parentf2ebac101d367ee091f54b8d43b39a4d74f3b90e (diff)
downloadqmk_firmware-a112f3614e0e3204ce35dcdfbf2723c3382c4c35.tar.gz
confirm SetReport LED.
Diffstat (limited to 'common/host.c')
-rw-r--r--common/host.c5
1 files changed, 4 insertions, 1 deletions
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)
void host_system_send(uint16_t data)
{
+ static uint16_t last_data = 0;
+ if (data == last_data) return;
+ last_data = data;
+
if (!driver) return;
(*driver->send_system)(data);
}
void host_consumer_send(uint16_t data)
{
- // TODO: this is needed?
static uint16_t last_data = 0;
if (data == last_data) return;
last_data = data;