1
0
Fork 0

confirm SetReport LED.

This commit is contained in:
tmk 2012-06-29 16:48:36 +09:00
parent f2ebac101d
commit a112f3614e
6 changed files with 91 additions and 61 deletions

View file

@ -138,6 +138,7 @@ static uint8_t command_common(void)
}
break;
case KB_S:
print("host_keyboard_leds:"); phex(host_keyboard_leds()); print("\n");
#ifdef HOST_PJRC
print("UDCON: "); phex(UDCON); print("\n");
print("UDIEN: "); phex(UDIEN); print("\n");

View file

@ -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;