aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPeter Johanson <[email protected]>2024-09-25 18:11:31 -0600
committerPete Johanson <[email protected]>2024-09-25 20:23:19 -0600
commit4a8ceba0db8bcd9c1ffda85d14f4b40080cae7fe (patch)
tree37c84bd32f93ba303f1e58b0c08f2d381bc4739a
parent5d4b6df6a7d5bc29675d016d63e0bef899f29a99 (diff)
downloadzmk-4a8ceba0db8bcd9c1ffda85d14f4b40080cae7fe.tar.gz
zmk-4a8ceba0db8bcd9c1ffda85d14f4b40080cae7fe.zip
chore: Fix keymap const warning.
-rw-r--r--app/src/keymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/keymap.c b/app/src/keymap.c
index af94bbfd3f..ad3c7278a2 100644
--- a/app/src/keymap.c
+++ b/app/src/keymap.c
@@ -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,
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 = {
.layer = layer_id,
.position = position,