diff options
author | tmk <nobody@nowhere> | 2013-02-16 04:20:01 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-02-16 04:20:01 +0900 |
commit | 998dc6c17e0b0cfe8377529a130d9c61590caf2a (patch) | |
tree | f0745fb55e970f057a862732739be4a665cdf910 /common/command.c | |
parent | f8d289e66965f99469292370c3b9200a03254f8e (diff) | |
parent | 06e4fc66edd15efa5afdcaed2102c7698b626484 (diff) | |
download | firmware-998dc6c17e0b0cfe8377529a130d9c61590caf2a.tar.gz firmware-998dc6c17e0b0cfe8377529a130d9c61590caf2a.tar.bz2 firmware-998dc6c17e0b0cfe8377529a130d9c61590caf2a.zip |
Merge branch 'layer_switch'
Diffstat (limited to 'common/command.c')
-rw-r--r-- | common/command.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/common/command.c b/common/command.c index c5b9f0431..2d01c95e6 100644 --- a/common/command.c +++ b/common/command.c @@ -26,8 +26,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "timer.h" #include "keyboard.h" #include "bootloader.h" +#include "layer_switch.h" #include "command.h" -#include "layer_stack.h" #ifdef MOUSEKEY_ENABLE #include "mousekey.h" @@ -543,12 +543,9 @@ static uint8_t numkey2num(uint8_t code) static void switch_default_layer(uint8_t layer) { - print_val_hex8(current_layer); - print_val_hex8(default_layer); - print("switch to "); print_val_hex8(layer); - + // TODO check existence of layer or whether it can be used as default layer + print("switch_default_layer: "); print_dec(default_layer); print(" to "); print_dec(layer); default_layer = layer; - current_layer = 0; /* 0 means default_layer */ - layer_stack_clear(); + layer_switch_clear(); clear_keyboard(); } |