diff options
| author | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2017-02-15 05:19:31 +0700 |
|---|---|---|
| committer | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2017-02-15 05:19:31 +0700 |
| commit | 3c8c3ebe3ffad774f0c3019654a5e185d37b8ebc (patch) | |
| tree | af39807116b29ea518f1a28a72d6741800257d16 /tmk_core/common/action_layer.h | |
| parent | 5e310746339bcc37385bc6cd3e0a09fbdf1c273b (diff) | |
| download | qmk_firmware-3c8c3ebe3ffad774f0c3019654a5e185d37b8ebc.tar.gz qmk_firmware-3c8c3ebe3ffad774f0c3019654a5e185d37b8ebc.zip | |
Bug fix & added default_layer_state_set_kb
Diffstat (limited to 'tmk_core/common/action_layer.h')
| -rw-r--r-- | tmk_core/common/action_layer.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tmk_core/common/action_layer.h b/tmk_core/common/action_layer.h index fc714700d..785bb5be4 100644 --- a/tmk_core/common/action_layer.h +++ b/tmk_core/common/action_layer.h | |||
| @@ -27,7 +27,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 27 | */ | 27 | */ |
| 28 | extern uint32_t default_layer_state; | 28 | extern uint32_t default_layer_state; |
| 29 | void default_layer_debug(void); | 29 | void default_layer_debug(void); |
| 30 | void default_layer_set(uint32_t state); | 30 | uint32_t default_layer_set(uint32_t state); |
| 31 | |||
| 32 | __attribute__((weak)) | ||
| 33 | void default_layer_state_set_kb(uint32_t state); | ||
| 31 | 34 | ||
| 32 | #ifndef NO_ACTION_LAYER | 35 | #ifndef NO_ACTION_LAYER |
| 33 | /* bitwise operation */ | 36 | /* bitwise operation */ |
| @@ -70,7 +73,7 @@ void layer_xor(uint32_t state); | |||
| 70 | #define layer_debug() | 73 | #define layer_debug() |
| 71 | 74 | ||
| 72 | __attribute__((weak)) | 75 | __attribute__((weak)) |
| 73 | void layer_state_set_kb(uint32_t oldstate, uint32_t newstate); | 76 | uint32_t layer_state_set_kb(uint32_t state); |
| 74 | #endif | 77 | #endif |
| 75 | 78 | ||
| 76 | /* pressed actions cache */ | 79 | /* pressed actions cache */ |
