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 80c4e8f00c..78601ce6bf 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -15,6 +15,7 @@   */  #include "quantum.h" +#include "magic.h"  #ifdef BLUETOOTH_ENABLE  #    include "outputselect.h" @@ -318,6 +319,17 @@ bool process_record_quantum(keyrecord_t *record) {                  set_output(OUTPUT_BLUETOOTH);                  return false;  #endif +#ifndef NO_ACTION_ONESHOT +            case ONESHOT_TOGGLE: +                oneshot_toggle(); +                break; +            case ONESHOT_ENABLE: +                oneshot_enable(); +                break; +            case ONESHOT_DISABLE: +                oneshot_disable(); +                break; +#endif          }      } @@ -369,12 +381,7 @@ void tap_random_base64(void) {  }  void matrix_init_quantum() { -#ifdef BOOTMAGIC_LITE -    bootmagic_lite(); -#endif -    if (!eeconfig_is_enabled()) { -        eeconfig_init(); -    } +    magic();  #if defined(LED_NUM_LOCK_PIN) || defined(LED_CAPS_LOCK_PIN) || defined(LED_SCROLL_LOCK_PIN) || defined(LED_COMPOSE_PIN) || defined(LED_KANA_PIN)      // TODO: remove calls to led_init_ports from keyboards and remove ifdef      led_init_ports();  | 
