fix(split): Add define for local source.

* Add `ZMK_POSITION_STATE_CHANGE_SOURCE_LOCAL` and use
  it consinstently to fix bug w/ local `&reset`, `&bootloader`, etc.
This commit is contained in:
Peter Johanson
2022-01-30 03:38:10 +00:00
committed by Pete Johanson
parent 4d55e60adb
commit fa110488b0
3 changed files with 4 additions and 2 deletions

View File

@@ -9,6 +9,8 @@
#include <zephyr.h>
#include <zmk/event_manager.h>
#define ZMK_POSITION_STATE_CHANGE_SOURCE_LOCAL UINT8_MAX
struct zmk_position_state_changed {
uint8_t source;
uint32_t position;