mirror of https://github.com/zmkfirmware/zmk.git
chore: Fix keymap const warning.
This commit is contained in:
parent
5d4b6df6a7
commit
4a8ceba0db
|
|
@ -581,7 +581,7 @@ int zmk_keymap_reset_settings(void) { return -ENOTSUP; }
|
||||||
|
|
||||||
int zmk_keymap_apply_position_state(uint8_t source, zmk_keymap_layer_id_t layer_id,
|
int zmk_keymap_apply_position_state(uint8_t source, zmk_keymap_layer_id_t layer_id,
|
||||||
uint32_t position, bool pressed, int64_t timestamp) {
|
uint32_t position, bool pressed, int64_t timestamp) {
|
||||||
struct zmk_behavior_binding *binding = &zmk_keymap[layer_id][position];
|
const struct zmk_behavior_binding *binding = &zmk_keymap[layer_id][position];
|
||||||
struct zmk_behavior_binding_event event = {
|
struct zmk_behavior_binding_event event = {
|
||||||
.layer = layer_id,
|
.layer = layer_id,
|
||||||
.position = position,
|
.position = position,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue