Skip to content

Commit a8d6547

Browse files
authored
Short term bodge for firmware size bloat (#14144)
1 parent e3b68dd commit a8d6547

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

quantum/action_tapping.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "action_tapping.h"
66
#include "keycode.h"
77
#include "timer.h"
8-
#include "keymap.h"
8+
#include "keymap_common.h"
99

1010
#ifdef DEBUG_ACTION
1111
# include "debug.h"

quantum/keymap.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
3333
// #include "print.h"
3434
#include "debug.h"
3535
#include "keycode_config.h"
36+
#include "keymap_common.h"
3637

3738
// ChibiOS uses RESET in its FlagStatus enumeration
3839
// Therefore define it as QK_RESET here, to avoid name collision
@@ -46,9 +47,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
4647

4748
#include "quantum_keycodes.h"
4849

49-
// translates key to keycode
50-
uint16_t keymap_key_to_keycode(uint8_t layer, keypos_t key);
51-
5250
// translates function id to action
5351
uint16_t keymap_function_id_to_action(uint16_t function_id);
5452

quantum/keymap_common.h

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* Copyright 2021 QMK
2+
*
3+
* This program is free software: you can redistribute it and/or modify
4+
* it under the terms of the GNU General Public License as published by
5+
* the Free Software Foundation, either version 3 of the License, or
6+
* (at your option) any later version.
7+
*
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License
14+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
#pragma once
17+
18+
// translates key to keycode
19+
uint16_t keymap_key_to_keycode(uint8_t layer, keypos_t key);

0 commit comments

Comments
 (0)