]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix Typo in Custom Quantum functions document (led_state) (#4129)
authorasakuno <chesscommands@users.noreply.github.com>
Sat, 13 Oct 2018 07:40:42 +0000 (16:40 +0900)
committerDrashna Jaelre <drashna@live.com>
Sat, 13 Oct 2018 07:40:42 +0000 (00:40 -0700)
*_LOCK
  ↓
DEL

docs/custom_quantum_functions.md

index b077e4b78d8dee826f9f580e8193c05b52c39329..5b95450f2670f45e7c6c309621db04618f13b799 100644 (file)
@@ -117,12 +117,12 @@ void led_set_user(uint8_t usb_led) {
     } else {
         PORTB &= ~(1<<2);
     }
-    if (usb_led & (1<<USB_LED_COMPOSE_LOCK)) {
+    if (usb_led & (1<<USB_LED_COMPOSE)) {
         PORTB |= (1<<3);
     } else {
         PORTB &= ~(1<<3);
     }
-    if (usb_led & (1<<USB_LED_KANA_LOCK)) {
+    if (usb_led & (1<<USB_LED_KANA)) {
         PORTB |= (1<<4);
     } else {
         PORTB &= ~(1<<4);