summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/include/zmk/endpoints.h2
-rw-r--r--app/include/zmk/events/keycode_state_changed.h2
-rw-r--r--app/src/endpoints.c2
-rw-r--r--app/src/hid_listener.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/app/include/zmk/endpoints.h b/app/include/zmk/endpoints.h
index 6428038..0d2bbce 100644
--- a/app/include/zmk/endpoints.h
+++ b/app/include/zmk/endpoints.h
@@ -18,4 +18,4 @@ int zmk_endpoints_select(enum zmk_endpoint endpoint);
int zmk_endpoints_toggle();
enum zmk_endpoint zmk_endpoints_selected();
-int zmk_endpoints_send_report(uint8_t usage_page);
+int zmk_endpoints_send_report(uint16_t usage_page);
diff --git a/app/include/zmk/events/keycode_state_changed.h b/app/include/zmk/events/keycode_state_changed.h
index d175605..85b792b 100644
--- a/app/include/zmk/events/keycode_state_changed.h
+++ b/app/include/zmk/events/keycode_state_changed.h
@@ -14,7 +14,7 @@
struct keycode_state_changed {
struct zmk_event_header header;
- uint8_t usage_page;
+ uint16_t usage_page;
uint32_t keycode;
uint8_t implicit_modifiers;
bool state;
diff --git a/app/src/endpoints.c b/app/src/endpoints.c
index 9f32f19..feff799 100644
--- a/app/src/endpoints.c
+++ b/app/src/endpoints.c
@@ -130,7 +130,7 @@ static int send_consumer_report() {
}
}
-int zmk_endpoints_send_report(uint8_t usage_page) {
+int zmk_endpoints_send_report(uint16_t usage_page) {
LOG_DBG("usage page 0x%02X", usage_page);
switch (usage_page) {
diff --git a/app/src/hid_listener.c b/app/src/hid_listener.c
index 80e9054..6537cca 100644
--- a/app/src/hid_listener.c
+++ b/app/src/hid_listener.c
@@ -16,7 +16,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
#include <dt-bindings/zmk/hid_usage_pages.h>
#include <zmk/endpoints.h>
-static int hid_listener_keycode_pressed(uint8_t usage_page, uint32_t keycode,
+static int hid_listener_keycode_pressed(uint16_t usage_page, uint32_t keycode,
zmk_mod_flags_t implicit_modifiers) {
int err;
LOG_DBG("usage_page 0x%02X keycode 0x%02X mods 0x%02X", usage_page, keycode,
@@ -41,7 +41,7 @@ static int hid_listener_keycode_pressed(uint8_t usage_page, uint32_t keycode,
return zmk_endpoints_send_report(usage_page);
}
-static int hid_listener_keycode_released(uint8_t usage_page, uint32_t keycode,
+static int hid_listener_keycode_released(uint16_t usage_page, uint32_t keycode,
zmk_mod_flags_t implicit_modifiers) {
int err;
LOG_DBG("usage_page 0x%02X keycode 0x%02X mods 0x%02X", usage_page, keycode,