diff options
| author | QMK Bot <hello@qmk.fm> | 2020-08-29 22:57:48 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2020-08-29 22:57:48 +0000 |
| commit | a3db72df7299140e52f57d082a3742a8b480a226 (patch) | |
| tree | 41d62db0fecd2eb0aeae1744b52e677555e55288 /tmk_core/protocol/chibios | |
| parent | 000eb14d789f84afc7dbd33955dbfb6481792f0b (diff) | |
| download | qmk_firmware-a3db72df7299140e52f57d082a3742a8b480a226.tar.gz qmk_firmware-a3db72df7299140e52f57d082a3742a8b480a226.zip | |
format code according to conventions [skip ci]
Diffstat (limited to 'tmk_core/protocol/chibios')
| -rw-r--r-- | tmk_core/protocol/chibios/usb_main.c | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/tmk_core/protocol/chibios/usb_main.c b/tmk_core/protocol/chibios/usb_main.c index 68c61cf55..ae33e86a7 100644 --- a/tmk_core/protocol/chibios/usb_main.c +++ b/tmk_core/protocol/chibios/usb_main.c | |||
| @@ -888,39 +888,43 @@ void virtser_task(void) { | |||
| 888 | void send_joystick_packet(joystick_t *joystick) { | 888 | void send_joystick_packet(joystick_t *joystick) { |
| 889 | joystick_report_t rep = { | 889 | joystick_report_t rep = { |
| 890 | # if JOYSTICK_AXES_COUNT > 0 | 890 | # if JOYSTICK_AXES_COUNT > 0 |
| 891 | .axes = {joystick->axes[0], | 891 | .axes = |
| 892 | { | ||
| 893 | joystick->axes[0], | ||
| 892 | 894 | ||
| 893 | # if JOYSTICK_AXES_COUNT >= 2 | 895 | # if JOYSTICK_AXES_COUNT >= 2 |
| 894 | joystick->axes[1], | 896 | joystick->axes[1], |
| 895 | # endif | 897 | # endif |
| 896 | # if JOYSTICK_AXES_COUNT >= 3 | 898 | # if JOYSTICK_AXES_COUNT >= 3 |
| 897 | joystick->axes[2], | 899 | joystick->axes[2], |
| 898 | # endif | 900 | # endif |
| 899 | # if JOYSTICK_AXES_COUNT >= 4 | 901 | # if JOYSTICK_AXES_COUNT >= 4 |
| 900 | joystick->axes[3], | 902 | joystick->axes[3], |
| 901 | # endif | 903 | # endif |
| 902 | # if JOYSTICK_AXES_COUNT >= 5 | 904 | # if JOYSTICK_AXES_COUNT >= 5 |
| 903 | joystick->axes[4], | 905 | joystick->axes[4], |
| 904 | # endif | 906 | # endif |
| 905 | # if JOYSTICK_AXES_COUNT >= 6 | 907 | # if JOYSTICK_AXES_COUNT >= 6 |
| 906 | joystick->axes[5], | 908 | joystick->axes[5], |
| 907 | # endif | 909 | # endif |
| 908 | }, | 910 | }, |
| 909 | # endif // JOYSTICK_AXES_COUNT>0 | 911 | # endif // JOYSTICK_AXES_COUNT>0 |
| 910 | 912 | ||
| 911 | # if JOYSTICK_BUTTON_COUNT > 0 | 913 | # if JOYSTICK_BUTTON_COUNT > 0 |
| 912 | .buttons = {joystick->buttons[0], | 914 | .buttons = |
| 915 | { | ||
| 916 | joystick->buttons[0], | ||
| 913 | 917 | ||
| 914 | # if JOYSTICK_BUTTON_COUNT > 8 | 918 | # if JOYSTICK_BUTTON_COUNT > 8 |
| 915 | joystick->buttons[1], | 919 | joystick->buttons[1], |
| 916 | # endif | 920 | # endif |
| 917 | # if JOYSTICK_BUTTON_COUNT > 16 | 921 | # if JOYSTICK_BUTTON_COUNT > 16 |
| 918 | joystick->buttons[2], | 922 | joystick->buttons[2], |
| 919 | # endif | 923 | # endif |
| 920 | # if JOYSTICK_BUTTON_COUNT > 24 | 924 | # if JOYSTICK_BUTTON_COUNT > 24 |
| 921 | joystick->buttons[3], | 925 | joystick->buttons[3], |
| 922 | # endif | 926 | # endif |
| 923 | } | 927 | } |
| 924 | # endif // JOYSTICK_BUTTON_COUNT>0 | 928 | # endif // JOYSTICK_BUTTON_COUNT>0 |
| 925 | }; | 929 | }; |
| 926 | 930 | ||
