forked from mirrors/qmk_userspace
Patched some keyboards that won't compile (#2453)
This commit is contained in:
parent
0e6e059ef3
commit
8d6eadf261
11 changed files with 26 additions and 24 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include "config_common.h"
|
||||
|
||||
#define BACKLIGHT_BREATHING
|
||||
#define BREATHING_PERIOD 3
|
||||
|
||||
#ifdef AUDIO_ENABLE
|
||||
#define STARTUP_SONG SONG(PLANCK_SOUND)
|
||||
|
|
|
|||
|
|
@ -134,7 +134,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DATA);
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
breathing_speed_set(3);
|
||||
breathing_enable();
|
||||
#endif
|
||||
}
|
||||
|
|
@ -146,7 +145,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
uint8_t default_layer = biton32(default_layer_state);
|
||||
if (default_layer == _QWERTY) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
breathing_speed_set(3);
|
||||
breathing_enable();
|
||||
#endif
|
||||
}
|
||||
|
|
@ -167,7 +165,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
uint8_t default_layer = biton32(default_layer_state);
|
||||
if (default_layer == _QWERTY) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
breathing_speed_set(3);
|
||||
breathing_enable();
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
|||
break;
|
||||
case MACRO_BREATH_DEFAULT:
|
||||
if (record->event.pressed) {
|
||||
breathing_defaults();
|
||||
breathing_period_default();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -337,7 +337,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
|||
case MACRO_BREATH_DEFAULT:
|
||||
if (record->event.pressed)
|
||||
{
|
||||
breathing_defaults();
|
||||
breathing_period_default();
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ ifndef QUANTUM_DIR
|
|||
include ../../../../Makefile
|
||||
endif
|
||||
|
||||
EXTRAKEY_ENABLE = no
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||
STENO_ENABLE = yes # Additional protocols for Stenography(+1700), requires VIRTSER
|
||||
AUDIO_ENABLE = no # Audio output on port C6
|
||||
|
|
|
|||
|
|
@ -346,7 +346,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
|||
case MACRO_BREATH_DEFAULT:
|
||||
if (record->event.pressed)
|
||||
{
|
||||
breathing_defaults();
|
||||
breathing_period_default();
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue