Skip to content

Commit

Permalink
Make keycode config functions weak
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Dec 10, 2022
1 parent c5dad67 commit 57cfc28
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions quantum/keycode_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@

#include "keycode_config.h"

extern keymap_config_t keymap_config;

/** \brief keycode_config
*
* This function is used to check a specific keycode against the bootmagic config,
* and will return the corrected keycode, when appropriate.
*/
uint16_t keycode_config(uint16_t keycode) {
__attribute__((weak)) uint16_t keycode_config(uint16_t keycode) {
switch (keycode) {
case KC_CAPS_LOCK:
case KC_LOCKING_CAPS_LOCK:
Expand Down Expand Up @@ -123,7 +121,7 @@ uint16_t keycode_config(uint16_t keycode) {
* and will remove or replace mods, based on that.
*/

uint8_t mod_config(uint8_t mod) {
__attribute__((weak)) uint8_t mod_config(uint8_t mod) {
if (keymap_config.swap_lalt_lgui) {
if ((mod & MOD_RGUI) == MOD_LGUI) {
mod &= ~MOD_LGUI;
Expand Down

0 comments on commit 57cfc28

Please sign in to comment.