summaryrefslogtreecommitdiff
path: root/app/src/behaviors/behavior_rgb_underglow.c
diff options
context:
space:
mode:
authorMubeen Khan <mubeen@mubeen.co>2020-10-11 23:17:04 -0500
committerGitHub <noreply@github.com>2020-10-11 23:17:04 -0500
commitd45e7b3c1190209953d5ffefff39f23341dbd88c (patch)
treed49b709299c9e29e41fadfa6f20d2e8ee9159cdc /app/src/behaviors/behavior_rgb_underglow.c
parent7fc7a351170fb2017cb40e8de79b4535a936a6f6 (diff)
parentba73e5d4ac295cc67e03fca9f80030022b8f529c (diff)
Merge pull request #7 from zmkfirmware/main
Update to stay even with upstream main
Diffstat (limited to 'app/src/behaviors/behavior_rgb_underglow.c')
-rw-r--r--app/src/behaviors/behavior_rgb_underglow.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/behaviors/behavior_rgb_underglow.c b/app/src/behaviors/behavior_rgb_underglow.c
index 621eab5..2ee6716 100644
--- a/app/src/behaviors/behavior_rgb_underglow.c
+++ b/app/src/behaviors/behavior_rgb_underglow.c
@@ -12,13 +12,15 @@
#include <dt-bindings/zmk/rgb.h>
#include <zmk/rgb_underglow.h>
+#include <zmk/keymap.h>
LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
static int behavior_rgb_underglow_init(struct device *dev) { return 0; }
-static int on_keymap_binding_pressed(struct device *dev, u32_t position, u32_t action, u32_t _) {
- switch (action) {
+static int on_keymap_binding_pressed(struct zmk_behavior_binding *binding,
+ struct zmk_behavior_binding_event event) {
+ switch (binding->param1) {
case RGB_TOG:
return zmk_rgb_underglow_toggle();
case RGB_HUI: