瀏覽代碼

Merge pull request #36 from Wraul/fix_sleep_led

Fixes to sleep LED
tags/v1.9
tmk 11 年之前
父節點
當前提交
bf3a23b306
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. 5
    0
      common/command.c
  2. 2
    0
      protocol/pjrc/usb.c

+ 5
- 0
common/command.c 查看文件

@@ -106,6 +106,9 @@ static void command_common_help(void)
print("x: toggle matrix debug\n");
print("k: toggle keyboard debug\n");
print("m: toggle mouse debug\n");
#ifdef SLEEP_LED_ENABLE
print("z: toggle sleep LED test\n");
#endif
print("v: print device version & info\n");
print("t: print timer count\n");
print("s: print status\n");
@@ -153,12 +156,14 @@ static bool command_common(uint8_t code)
{
static host_driver_t *host_driver = 0;
switch (code) {
#ifdef SLEEP_LED_ENABLE
case KC_Z:
// test breathing sleep LED
print("Sleep LED test\n");
sleep_led_toggle();
led_set(host_keyboard_leds());
break;
#endif
#ifdef BOOTMAGIC_ENABLE
case KC_E:
print("eeconfig:\n");

+ 2
- 0
protocol/pjrc/usb.c 查看文件

@@ -34,7 +34,9 @@
#include "led.h"
#include "print.h"
#include "util.h"
#ifdef SLEEP_LED_ENABLE
#include "sleep_led.h"
#endif
#include "suspend.h"



Loading…
取消
儲存