diff options
author | QMK Bot <hello@qmk.fm> | 2020-02-02 20:47:40 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2020-02-02 20:47:40 +0000 |
commit | fa9c74c6a2301c8f0f12727eb730e213b3d7453c (patch) | |
tree | 95264a06489086e9f8eecae497bd8e4b07af2972 /tmk_core/protocol/vusb | |
parent | b2ce2f8a34fba72e4b4ac2fba0ec11431b0acb0c (diff) |
format code according to conventions [skip ci]
Diffstat (limited to 'tmk_core/protocol/vusb')
-rw-r--r-- | tmk_core/protocol/vusb/vusb.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tmk_core/protocol/vusb/vusb.c b/tmk_core/protocol/vusb/vusb.c index 71263344fd..110b3069bd 100644 --- a/tmk_core/protocol/vusb/vusb.c +++ b/tmk_core/protocol/vusb/vusb.c @@ -113,10 +113,10 @@ static void send_mouse(report_mouse_t *report) { } static void send_extra(uint8_t report_id, uint16_t data) { - static uint8_t last_id = 0; + static uint8_t last_id = 0; static uint16_t last_data = 0; if ((report_id == last_id) && (data == last_data)) return; - last_id = report_id; + last_id = report_id; last_data = data; report_extra_t report = {.report_id = report_id, .usage = data}; @@ -125,13 +125,9 @@ static void send_extra(uint8_t report_id, uint16_t data) { } } -static void send_system(uint16_t data) { - send_extra(REPORT_ID_SYSTEM, data); -} +static void send_system(uint16_t data) { send_extra(REPORT_ID_SYSTEM, data); } -static void send_consumer(uint16_t data) { - send_extra(REPORT_ID_CONSUMER, data); -} +static void send_consumer(uint16_t data) { send_extra(REPORT_ID_CONSUMER, data); } /*------------------------------------------------------------------* * Request from host * |