summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorTerryMathews <terry@terrymathews.net>2016-07-08 03:32:28 -0400
committerTerryMathews <terry@terrymathews.net>2016-07-08 03:32:28 -0400
commitf7a86822266603b8ffd21e9f89ec1de8d4950791 (patch)
tree149953e47b887b2e18328071ae04e628af80ba20 /quantum
parente2ec45a755741a29ecd814e6151f4d4860b20386 (diff)
Move return out of event if block
According to Jack, this makes the return case not be processed. Doesn't break anything in the firmware.
Diffstat (limited to 'quantum')
-rw-r--r--quantum/quantum.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 5c0b53e221..09daa47127 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -93,65 +93,65 @@ bool process_record_quantum(keyrecord_t *record) {
*(uint16_t *)0x0800 = 0x7777; // these two are a-star-specific
#endif
bootloader_jump();
- return false;
}
+ return false;
break;
case DEBUG:
if (record->event.pressed) {
print("\nDEBUG: enabled.\n");
debug_enable = true;
- return false;
}
+ return false;
break;
#ifdef RGBLIGHT_ENABLE
case RGB_TOG:
if (record->event.pressed) {
rgblight_toggle();
- return false;
- }
- break;
+ }
+ return false;
+ break;
case RGB_MOD:
if (record->event.pressed) {
rgblight_step();
- return false;
- }
- break;
+ }
+ return false;
+ break;
case RGB_HUI:
if (record->event.pressed) {
rgblight_increase_hue();
- return false;
- }
- break;
+ }
+ return false;
+ break;
case RGB_HUD:
if (record->event.pressed) {
rgblight_decrease_hue();
- return false;
- }
- break;
+ }
+ return false;
+ break;
case RGB_SAI:
if (record->event.pressed) {
rgblight_increase_sat();
- return false;
- }
- break;
+ }
+ return false;
+ break;
case RGB_SAD:
if (record->event.pressed) {
rgblight_decrease_sat();
- return false;
- }
- break;
+ }
+ return false;
+ break;
case RGB_VAI:
if (record->event.pressed) {
rgblight_increase_val();
- return false;
- }
- break;
+ }
+ return false;
+ break;
case RGB_VAD:
if (record->event.pressed) {
rgblight_decrease_val();
- return false;
- }
- break;
+ }
+ return false;
+ break;
#endif
case MAGIC_SWAP_CONTROL_CAPSLOCK ... MAGIC_UNSWAP_ALT_GUI:
if (record->event.pressed) {