Implement core communication

This commit is contained in:
Drashna Jael're
2020-01-15 02:14:48 -08:00
committed by Florian Didron
parent 5c1c41462a
commit 3b71e1e819
11 changed files with 73 additions and 58 deletions
+6 -1
View File
@@ -3,7 +3,9 @@
#include "action.h"
#include "util.h"
#include "action_layer.h"
#ifdef ORYX_ENABLE
# include "oryx.h"
#endif
#ifdef DEBUG_ACTION
# include "debug.h"
#else
@@ -97,6 +99,9 @@ __attribute__((weak)) layer_state_t layer_state_set_kb(layer_state_t state) { re
* Sets the layer to match the specifed state (a bitmask)
*/
void layer_state_set(layer_state_t state) {
#ifdef ORYX_ENABLE
layer_state_set_oryx(state);
#endif
state = layer_state_set_kb(state);
dprint("layer_state: ");
layer_debug();