aboutsummaryrefslogtreecommitdiff
path: root/common/command.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-01-28 14:06:42 +0900
committertmk <nobody@nowhere>2013-01-28 14:06:42 +0900
commit1e3e41a2c9ed8b2f7d44be0aed5d96ed557fa13d (patch)
tree4846c3d3f8144b3796322ac669d13837f4e09f17 /common/command.c
parent854c803fdda30d7f7905c18d777ea85cac9b74d9 (diff)
downloadqmk_firmware-1e3e41a2c9ed8b2f7d44be0aed5d96ed557fa13d.tar.gz
qmk_firmware-1e3e41a2c9ed8b2f7d44be0aed5d96ed557fa13d.zip
Clean code.
Diffstat (limited to 'common/command.c')
-rw-r--r--common/command.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/common/command.c b/common/command.c
index a06e6a00d..8ca16b910 100644
--- a/common/command.c
+++ b/common/command.c
@@ -19,6 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
19#include <util/delay.h> 19#include <util/delay.h>
20#include "keycode.h" 20#include "keycode.h"
21#include "host.h" 21#include "host.h"
22#include "keymap.h"
22#include "print.h" 23#include "print.h"
23#include "debug.h" 24#include "debug.h"
24#include "util.h" 25#include "util.h"
@@ -53,7 +54,6 @@ static void mousekey_console_help(void);
53 54
54static uint8_t numkey2num(uint8_t code); 55static uint8_t numkey2num(uint8_t code);
55static void switch_layer(uint8_t layer); 56static void switch_layer(uint8_t layer);
56static void clear_keyboard(void);
57 57
58 58
59typedef enum { ONESHOT, CONSOLE, MOUSEKEY } cmdstate_t; 59typedef enum { ONESHOT, CONSOLE, MOUSEKEY } cmdstate_t;
@@ -555,18 +555,3 @@ static void switch_layer(uint8_t layer)
555 default_layer = layer; 555 default_layer = layer;
556 print("switch to "); print_val_hex8(layer); 556 print("switch to "); print_val_hex8(layer);
557} 557}
558
559static void clear_keyboard(void)
560{
561 host_clear_keys();
562 host_clear_mods();
563 host_send_keyboard_report();
564
565 host_system_send(0);
566 host_consumer_send(0);
567
568#ifdef MOUSEKEY_ENABLE
569 mousekey_clear();
570 mousekey_send();
571#endif
572}