summaryrefslogtreecommitdiff
path: root/app/include
diff options
context:
space:
mode:
authorinnovaker <66737976+innovaker@users.noreply.github.com>2020-12-17 19:36:19 +0000
committerPete Johanson <peter@peterjohanson.com>2021-01-15 01:48:39 -0500
commit1d18900a994b6a80e1f74d43eb0497c35e9e2f78 (patch)
treeec71a07f782ff35dbb352cd17212215890b4cafa /app/include
parentfeb0d5b90cbbb1a1026bf356afd788c860824ccf (diff)
refactor(core): define usage page as uint16_t
Aligns with the HID specification. Usage page values were sometimes declared as uint8_t and sometimes uint16_t. This commit aligns all instances with the HID specification for consistency. PR: #521
Diffstat (limited to 'app/include')
-rw-r--r--app/include/zmk/endpoints.h2
-rw-r--r--app/include/zmk/events/keycode_state_changed.h2
2 files changed, 2 insertions, 2 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;