diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-07-24 15:39:01 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-08-04 18:59:46 +0000 |
commit | 005c414e5f2a0ace3756da767d3920ac98cb5c76 (patch) | |
tree | 73b17f1e733ffb64a475657eefa21b17ac1ff7b9 /apps/usb_keymaps.c | |
parent | ef41cc6623226f3ce7630211ef88640a48fb8e59 (diff) | |
download | rockbox-005c414e5f2a0ace3756da767d3920ac98cb5c76.tar.gz rockbox-005c414e5f2a0ace3756da767d3920ac98cb5c76.zip |
Document intentional fallthroughs + fix harmless unintended ones
Change-Id: I1ca5b1027ec30cbf61093bab35b980196ed14e6b
Diffstat (limited to 'apps/usb_keymaps.c')
-rw-r--r-- | apps/usb_keymaps.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/usb_keymaps.c b/apps/usb_keymaps.c index bd72d95be8..2781fb5532 100644 --- a/apps/usb_keymaps.c +++ b/apps/usb_keymaps.c | |||
@@ -181,6 +181,7 @@ int get_hid_usb_action(void) | |||
181 | { | 181 | { |
182 | case ACTION_USB_HID_MODE_SWITCH_NEXT: | 182 | case ACTION_USB_HID_MODE_SWITCH_NEXT: |
183 | step = 1; | 183 | step = 1; |
184 | /* fallthrough */ | ||
184 | case ACTION_USB_HID_MODE_SWITCH_PREV: | 185 | case ACTION_USB_HID_MODE_SWITCH_PREV: |
185 | /* Switch key mappings in a cyclic way */ | 186 | /* Switch key mappings in a cyclic way */ |
186 | usb_keypad_mode = clamp_value_wrap(usb_keypad_mode + step, | 187 | usb_keypad_mode = clamp_value_wrap(usb_keypad_mode + step, |