Browse Source

Fixes to sleep LED.

Add help text.
Add missing SLEEP_LED_ENABLE checks.
tags/v1.9
Mathias Andersson 11 years ago
parent
commit
ddf1759dbe
2 changed files with 7 additions and 0 deletions
  1. 5
    0
      common/command.c
  2. 2
    0
      protocol/pjrc/usb.c

+ 5
- 0
common/command.c View File

print("x: toggle matrix debug\n"); print("x: toggle matrix debug\n");
print("k: toggle keyboard debug\n"); print("k: toggle keyboard debug\n");
print("m: toggle mouse 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("v: print device version & info\n");
print("t: print timer count\n"); print("t: print timer count\n");
print("s: print status\n"); print("s: print status\n");
{ {
static host_driver_t *host_driver = 0; static host_driver_t *host_driver = 0;
switch (code) { switch (code) {
#ifdef SLEEP_LED_ENABLE
case KC_Z: case KC_Z:
// test breathing sleep LED // test breathing sleep LED
print("Sleep LED test\n"); print("Sleep LED test\n");
sleep_led_toggle(); sleep_led_toggle();
led_set(host_keyboard_leds()); led_set(host_keyboard_leds());
break; break;
#endif
#ifdef BOOTMAGIC_ENABLE #ifdef BOOTMAGIC_ENABLE
case KC_E: case KC_E:
print("eeconfig:\n"); print("eeconfig:\n");

+ 2
- 0
protocol/pjrc/usb.c View File

#include "led.h" #include "led.h"
#include "print.h" #include "print.h"
#include "util.h" #include "util.h"
#ifdef SLEEP_LED_ENABLE
#include "sleep_led.h" #include "sleep_led.h"
#endif
#include "suspend.h" #include "suspend.h"





Loading…
Cancel
Save