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.
This commit is contained in:
parent
90a45aac6e
commit
00d1d7828c
6 changed files with 50 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue