diff options
| author | tmk <nobody@nowhere> | 2013-02-20 11:16:13 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-02-20 11:48:15 +0900 |
| commit | e0f960a576e090808e5cc25c5368441c11f36ea6 (patch) | |
| tree | afe64cce00a34b99aeb9b6b989ab08e803b3d4b2 /common/command.c | |
| parent | abf0b04d14629de35968ee07e3bb587eebccf68b (diff) | |
| download | qmk_firmware-e0f960a576e090808e5cc25c5368441c11f36ea6.tar.gz qmk_firmware-e0f960a576e090808e5cc25c5368441c11f36ea6.zip | |
Add overlay framework
Diffstat (limited to 'common/command.c')
| -rw-r--r-- | common/command.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/common/command.c b/common/command.c index 2d01c95e6..202d531fd 100644 --- a/common/command.c +++ b/common/command.c | |||
| @@ -543,9 +543,8 @@ static uint8_t numkey2num(uint8_t code) | |||
| 543 | 543 | ||
| 544 | static void switch_default_layer(uint8_t layer) | 544 | static void switch_default_layer(uint8_t layer) |
| 545 | { | 545 | { |
| 546 | // TODO check existence of layer or whether it can be used as default layer | 546 | print("switch_default_layer: "); print_dec(default_layer); print(" to "); print_dec(layer); print("\n"); |
| 547 | print("switch_default_layer: "); print_dec(default_layer); print(" to "); print_dec(layer); | 547 | default_layer_set(layer); |
| 548 | default_layer = layer; | 548 | overlay_clear(); |
| 549 | layer_switch_clear(); | ||
| 550 | clear_keyboard(); | 549 | clear_keyboard(); |
| 551 | } | 550 | } |
