summary refs log tree commit diff
path: root/common/command.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-02-16 04:05:58 +0900
committertmk <nobody@nowhere>2013-02-16 04:08:31 +0900
commite324fa29187dff7868d9d7fd378e0e46d77107a5 (patch)
treea72966995df47eef01ced9873c14f972de8af069 /common/command.c
parent0142b571c46c7db314063615c956cbc5ec9720f1 (diff)
Rewrite layer action with layer_switch
Diffstat (limited to 'common/command.c')
-rw-r--r--common/command.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/common/command.c b/common/command.c
index 82f647c8f3..2d01c95e6a 100644
--- a/common/command.c
+++ b/common/command.c
@@ -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_switch_clear();
     clear_keyboard();
 }