1
0
Fork 0

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:
Alex Ong 2019-05-18 06:47:50 +10:00 committed by Drashna Jaelre
parent 90a45aac6e
commit 00d1d7828c
6 changed files with 50 additions and 42 deletions

View file

@ -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