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.
This commit is contained in:
TerryMathews 2016-07-08 03:32:28 -04:00
parent e2ec45a755
commit f7a8682226

View File

@ -93,65 +93,65 @@ bool process_record_quantum(keyrecord_t *record) {
*(uint16_t *)0x0800 = 0x7777; // these two are a-star-specific *(uint16_t *)0x0800 = 0x7777; // these two are a-star-specific
#endif #endif
bootloader_jump(); bootloader_jump();
return false;
} }
return false;
break; break;
case DEBUG: case DEBUG:
if (record->event.pressed) { if (record->event.pressed) {
print("\nDEBUG: enabled.\n"); print("\nDEBUG: enabled.\n");
debug_enable = true; debug_enable = true;
return false;
} }
return false;
break; break;
#ifdef RGBLIGHT_ENABLE #ifdef RGBLIGHT_ENABLE
case RGB_TOG: case RGB_TOG:
if (record->event.pressed) { if (record->event.pressed) {
rgblight_toggle(); rgblight_toggle();
return false; }
} return false;
break; break;
case RGB_MOD: case RGB_MOD:
if (record->event.pressed) { if (record->event.pressed) {
rgblight_step(); rgblight_step();
return false; }
} return false;
break; break;
case RGB_HUI: case RGB_HUI:
if (record->event.pressed) { if (record->event.pressed) {
rgblight_increase_hue(); rgblight_increase_hue();
return false; }
} return false;
break; break;
case RGB_HUD: case RGB_HUD:
if (record->event.pressed) { if (record->event.pressed) {
rgblight_decrease_hue(); rgblight_decrease_hue();
return false; }
} return false;
break; break;
case RGB_SAI: case RGB_SAI:
if (record->event.pressed) { if (record->event.pressed) {
rgblight_increase_sat(); rgblight_increase_sat();
return false; }
} return false;
break; break;
case RGB_SAD: case RGB_SAD:
if (record->event.pressed) { if (record->event.pressed) {
rgblight_decrease_sat(); rgblight_decrease_sat();
return false; }
} return false;
break; break;
case RGB_VAI: case RGB_VAI:
if (record->event.pressed) { if (record->event.pressed) {
rgblight_increase_val(); rgblight_increase_val();
return false; }
} return false;
break; break;
case RGB_VAD: case RGB_VAD:
if (record->event.pressed) { if (record->event.pressed) {
rgblight_decrease_val(); rgblight_decrease_val();
return false; }
} return false;
break; break;
#endif #endif
case MAGIC_SWAP_CONTROL_CAPSLOCK ... MAGIC_UNSWAP_ALT_GUI: case MAGIC_SWAP_CONTROL_CAPSLOCK ... MAGIC_UNSWAP_ALT_GUI:
if (record->event.pressed) { if (record->event.pressed) {