diff options
author | Alex Ong <the.onga@gmail.com> | 2019-05-18 06:47:50 +1000 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-05-17 13:47:50 -0700 |
commit | 00d1d7828c63538122d9d3db7336b9a40c9ffe80 (patch) | |
tree | e1d055c72f23bbdc6e30ee7e3eb1213857e2ae33 /quantum | |
parent | 90a45aac6e8fdbf8d781d711bb6a27574130ff38 (diff) | |
download | qmk_firmware-00d1d7828c63538122d9d3db7336b9a40c9ffe80.tar.gz |
Typedef'ed layer_state_t to uint32_t (#3637)
* Typedef'ed layer_state_t to uint32_t.
This enables future work with layer_state_t to uint8_t for optimization purposes.
* Removed accidental xeal60 commit
* Revert to egyptian brackets, added sizeof(layer_state_t) so when layer_state_t is redefined it will automagically work.
* Add additional typedefs
* Add checks for setting layer state
* Update tmk_core/common/action_layer.h
Co-Authored-By: alex-ong <the.onga@gmail.com>
* Revert commit.
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/quantum.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/quantum.h b/quantum/quantum.h index 208268df6..451dd8a4b 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h @@ -61,10 +61,10 @@ #include "send_string_keycodes.h" #include "suspend.h" -extern uint32_t default_layer_state; +extern layer_state_t default_layer_state; #ifndef NO_ACTION_LAYER - extern uint32_t layer_state; + extern layer_state_t layer_state; #endif #ifdef MIDI_ENABLE |