diff options
author | QMK Bot <hello@qmk.fm> | 2020-02-02 20:47:40 +0000 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2020-02-26 10:15:12 +0900 |
commit | b0896a3b356cdbe7eddc96c4f88b6f56a3125aa7 (patch) | |
tree | 23cad63d49875b812e9565b71396255778de01cc /tmk_core/protocol/vusb/vusb.c | |
parent | df6e5f16b6c334f464ac444f6c0e350daf7ec873 (diff) |
format code according to conventions [skip ci]
Diffstat (limited to 'tmk_core/protocol/vusb/vusb.c')
-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 1a2acc11b7..5616f69b91 100644 --- a/tmk_core/protocol/vusb/vusb.c +++ b/tmk_core/protocol/vusb/vusb.c @@ -114,10 +114,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}; @@ -126,13 +126,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 * |