]> git.donarmstrong.com Git - tmk_firmware.git/blobdiff - common/command.c
Remove ACT_KEYMAP and ACT_OVERLAY
[tmk_firmware.git] / common / command.c
index cb98e1d5f206803fbcc84cb2266aebaeed564502..e197a8f80ab546e0d304017495c1d23118ede512 100644 (file)
@@ -28,6 +28,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include "bootloader.h"
 #include "layer_switch.h"
 #include "eeconfig.h"
+#include "sleep_led.h"
+#include "led.h"
 #include "command.h"
 
 #ifdef MOUSEKEY_ENABLE
@@ -152,6 +154,12 @@ static bool command_common(uint8_t code)
 {
     static host_driver_t *host_driver = 0;
     switch (code) {
+        case KC_Z:
+            // test breathing sleep LED
+            print("Sleep LED test\n");
+            sleep_led_toggle();
+            led_set(host_keyboard_leds());
+            break;
 #ifdef BOOTMAGIC_ENABLE
         case KC_E:
             print("eeprom config\n");
@@ -567,6 +575,5 @@ static void switch_default_layer(uint8_t layer)
 {
     print("switch_default_layer: "); print_dec(default_layer); print(" to "); print_dec(layer); print("\n");
     default_layer_set(layer);
-    overlay_clear();
     clear_keyboard();
 }