]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
remove breath functions from keymap
authorjpetermans <tibcmhhm@gmail.com>
Mon, 8 May 2017 23:38:44 +0000 (16:38 -0700)
committerjpetermans <tibcmhhm@gmail.com>
Mon, 8 May 2017 23:38:44 +0000 (16:38 -0700)
keyboards/infinity60/keymaps/jpetermans/keymap.c
keyboards/infinity60/keymaps/jpetermans/readme.md

index 1afb7c067faa87f89de30e1240fc05d2543fd050..630105017dabf4bed90a52f13d8caeb39caa88c4 100644 (file)
@@ -23,7 +23,6 @@ enum ic60_keycodes {
   BACKLIGHT,
   BRIGHT,
   DIM,
-  BREATH,
   ALL,
   GAME,
   MODE_SINGLE,
@@ -118,7 +117,6 @@ enum macro_id {
     ACTION_LEDS_BACKLIGHT,
     ACTION_LEDS_BRIGHT,
     ACTION_LEDS_DIM,
-    ACTION_LEDS_BREATH,
     ACTION_LEDS_SINGLE,
     ACTION_LEDS_PAGE,
     ACTION_LEDS_FLASH,
@@ -175,7 +173,6 @@ const uint16_t fn_actions[] = {
     [BACKLIGHT] = ACTION_FUNCTION(ACTION_LEDS_BACKLIGHT),
     [BRIGHT] = ACTION_FUNCTION(ACTION_LEDS_BRIGHT),
     [DIM] = ACTION_FUNCTION(ACTION_LEDS_DIM),
-    [BREATH] = ACTION_FUNCTION(ACTION_LEDS_BREATH),
     [MODE_SINGLE] = ACTION_FUNCTION(ACTION_LEDS_SINGLE),
     [MODE_PAGE] = ACTION_FUNCTION(ACTION_LEDS_PAGE),
     [MODE_FLASH] = ACTION_FUNCTION(ACTION_LEDS_FLASH),
@@ -225,13 +222,6 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
       }
       break;
 
-    case ACTION_LEDS_BREATH:
-      if(record->event.pressed) {
-        msg=(TOGGLE_BREATH << 8) | 0;
-        chMBPost(&led_mailbox, msg, TIME_IMMEDIATE);
-      }
-      break;
-
     //set led_mode for matrix_scan to toggle leds
     case ACTION_LEDS_SINGLE:
       led_mode_global = MODE_SINGLE;
index 7e60a7f0daffaa654968cc509a01d365ed326ed3..f50bee617218b63a845316e3340bf2677edbaf7b 100644 (file)
@@ -72,10 +72,13 @@ chMBPost(&led_mailbox, message, timeout);
 -timeout is usually TIME_IMMEDIATE
 
 An example:
-1. set the message to be sent. First byte (LSB) is the led address, and second is the message type
-    * `msg=(ON_LED << 8) | 42;`
-2. send msg to the led mailbox
-    * `chMBPost(&led_mailbox, msg, TIME_IMMEDIATE);`
+```c
+//set the message to be sent. First byte (LSB) is the led address, and second is the message type
+msg=(ON_LED << 8) | 42;
+
+//send msg to the led mailbox
+chMBPost(&led_mailbox, msg, TIME_IMMEDIATE);
+```
 
 Another:
 ```c