Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix int size of mk_wheel_interval to match mousekey.c #775

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

dcpedit
Copy link
Contributor

@dcpedit dcpedit commented Aug 23, 2024

Getting compile errors when enabling kinetic mode:

#define MK_KINETIC_SPEED

Error:

Compiling: quantum/mousekey.c                                                                      quantum/mousekey.c:83:10: error: conflicting types for 'mk_wheel_interval'; have 'uint16_t' {aka 'short unsigned int'}
   83 | uint16_t mk_wheel_interval = 1000U / MOUSEKEY_WHEEL_INITIAL_MOVEMENTS;
      |          ^~~~~~~~~~~~~~~~~
In file included from quantum/mousekey.c:25:
quantum/mousekey.h:186:16: note: previous declaration of 'mk_wheel_interval' with type 'uint8_t' {aka 'unsigned char'}
  186 | extern uint8_t mk_wheel_interval;
      |                ^~~~~~~~~~~~~~~~~
 [ERRORS]

Need to add logic around the int size of mk_wheel_interval to match what's in mousekey.c

@dcpedit dcpedit changed the title Fix int size of mk_wheel_interval to match mousekey.h Fix int size of mk_wheel_interval to match mousekey.c Aug 23, 2024
@xyzz xyzz merged commit 313ccb7 into vial-kb:vial Aug 26, 2024
3 checks passed
WoofWoofGrr pushed a commit to WoofWoofGrr/vial-qmk that referenced this pull request Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants