diff options
Diffstat (limited to 'tmk_core/common')
| -rw-r--r-- | tmk_core/common/action_code.h | 2 | ||||
| -rw-r--r-- | tmk_core/common/keymap.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tmk_core/common/action_code.h b/tmk_core/common/action_code.h index 4fe9c1d58..2b0b0b077 100644 --- a/tmk_core/common/action_code.h +++ b/tmk_core/common/action_code.h | |||
| @@ -301,7 +301,7 @@ enum backlight_opt { | |||
| 301 | #define ACTION_BACKLIGHT_DECREASE() ACTION(ACT_BACKLIGHT, BACKLIGHT_DECREASE << 8) | 301 | #define ACTION_BACKLIGHT_DECREASE() ACTION(ACT_BACKLIGHT, BACKLIGHT_DECREASE << 8) |
| 302 | #define ACTION_BACKLIGHT_TOGGLE() ACTION(ACT_BACKLIGHT, BACKLIGHT_TOGGLE << 8) | 302 | #define ACTION_BACKLIGHT_TOGGLE() ACTION(ACT_BACKLIGHT, BACKLIGHT_TOGGLE << 8) |
| 303 | #define ACTION_BACKLIGHT_STEP() ACTION(ACT_BACKLIGHT, BACKLIGHT_STEP << 8) | 303 | #define ACTION_BACKLIGHT_STEP() ACTION(ACT_BACKLIGHT, BACKLIGHT_STEP << 8) |
| 304 | #define ACTION_BACKLIGHT_LEVEL(level) ACTION(ACT_BACKLIGHT, BACKLIGHT_LEVEL << 8 | level) | 304 | #define ACTION_BACKLIGHT_LEVEL(level) ACTION(ACT_BACKLIGHT, BACKLIGHT_LEVEL << 8 | (level)) |
| 305 | /* Command */ | 305 | /* Command */ |
| 306 | #define ACTION_COMMAND(id, opt) ACTION(ACT_COMMAND, (opt)<<8 | (addr)) | 306 | #define ACTION_COMMAND(id, opt) ACTION(ACT_COMMAND, (opt)<<8 | (addr)) |
| 307 | /* Function */ | 307 | /* Function */ |
diff --git a/tmk_core/common/keymap.c b/tmk_core/common/keymap.c index 11f4aa8aa..8955fc710 100644 --- a/tmk_core/common/keymap.c +++ b/tmk_core/common/keymap.c | |||
| @@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 22 | #include "action_macro.h" | 22 | #include "action_macro.h" |
| 23 | #include "wait.h" | 23 | #include "wait.h" |
| 24 | #include "debug.h" | 24 | #include "debug.h" |
| 25 | 25 | #include "bootloader.h" | |
| 26 | 26 | ||
| 27 | static action_t keycode_to_action(uint8_t keycode); | 27 | static action_t keycode_to_action(uint8_t keycode); |
| 28 | 28 | ||
| @@ -143,6 +143,7 @@ static action_t keycode_to_action(uint8_t keycode) | |||
| 143 | action.code = ACTION_TRANSPARENT; | 143 | action.code = ACTION_TRANSPARENT; |
| 144 | break; | 144 | break; |
| 145 | case KC_BOOTLOADER: | 145 | case KC_BOOTLOADER: |
| 146 | action.code = ACTION_NO; | ||
| 146 | clear_keyboard(); | 147 | clear_keyboard(); |
| 147 | wait_ms(50); | 148 | wait_ms(50); |
| 148 | bootloader_jump(); // not return | 149 | bootloader_jump(); // not return |
