diff options
author | tmk <nobody@nowhere> | 2012-06-30 14:56:24 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2012-06-30 14:56:24 +0900 |
commit | fca518f90dfc7f72132ff7950b000cfbd5709807 (patch) | |
tree | 1c61e7b91f1f4986232a1fdca421b3346f8a9431 /common/host.c | |
parent | 76033dcd892a115240c5a990e5643cd53acbca87 (diff) | |
parent | 2769f09d11a4c45362f2e6137f2469d057d8757e (diff) | |
download | firmware-fca518f90dfc7f72132ff7950b000cfbd5709807.tar.gz firmware-fca518f90dfc7f72132ff7950b000cfbd5709807.tar.bz2 firmware-fca518f90dfc7f72132ff7950b000cfbd5709807.zip |
Merge branch 'lufa'
Diffstat (limited to 'common/host.c')
-rw-r--r-- | common/host.c | 5 |
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; |