diff options
Diffstat (limited to 'quantum/quantum.c')
| -rw-r--r-- | quantum/quantum.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index 80c4e8f00..78601ce6b 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c | |||
| @@ -15,6 +15,7 @@ | |||
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include "quantum.h" | 17 | #include "quantum.h" |
| 18 | #include "magic.h" | ||
| 18 | 19 | ||
| 19 | #ifdef BLUETOOTH_ENABLE | 20 | #ifdef BLUETOOTH_ENABLE |
| 20 | # include "outputselect.h" | 21 | # include "outputselect.h" |
| @@ -318,6 +319,17 @@ bool process_record_quantum(keyrecord_t *record) { | |||
| 318 | set_output(OUTPUT_BLUETOOTH); | 319 | set_output(OUTPUT_BLUETOOTH); |
| 319 | return false; | 320 | return false; |
| 320 | #endif | 321 | #endif |
| 322 | #ifndef NO_ACTION_ONESHOT | ||
| 323 | case ONESHOT_TOGGLE: | ||
| 324 | oneshot_toggle(); | ||
| 325 | break; | ||
| 326 | case ONESHOT_ENABLE: | ||
| 327 | oneshot_enable(); | ||
| 328 | break; | ||
| 329 | case ONESHOT_DISABLE: | ||
| 330 | oneshot_disable(); | ||
| 331 | break; | ||
| 332 | #endif | ||
| 321 | } | 333 | } |
| 322 | } | 334 | } |
| 323 | 335 | ||
| @@ -369,12 +381,7 @@ void tap_random_base64(void) { | |||
| 369 | } | 381 | } |
| 370 | 382 | ||
| 371 | void matrix_init_quantum() { | 383 | void matrix_init_quantum() { |
| 372 | #ifdef BOOTMAGIC_LITE | 384 | magic(); |
| 373 | bootmagic_lite(); | ||
| 374 | #endif | ||
| 375 | if (!eeconfig_is_enabled()) { | ||
| 376 | eeconfig_init(); | ||
| 377 | } | ||
| 378 | #if defined(LED_NUM_LOCK_PIN) || defined(LED_CAPS_LOCK_PIN) || defined(LED_SCROLL_LOCK_PIN) || defined(LED_COMPOSE_PIN) || defined(LED_KANA_PIN) | 385 | #if defined(LED_NUM_LOCK_PIN) || defined(LED_CAPS_LOCK_PIN) || defined(LED_SCROLL_LOCK_PIN) || defined(LED_COMPOSE_PIN) || defined(LED_KANA_PIN) |
| 379 | // TODO: remove calls to led_init_ports from keyboards and remove ifdef | 386 | // TODO: remove calls to led_init_ports from keyboards and remove ifdef |
| 380 | led_init_ports(); | 387 | led_init_ports(); |
