-
-
Notifications
You must be signed in to change notification settings - Fork 40.5k
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
AL1 Unable to Compile on Configurator #3339
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you check the normal matrix.c, the reason this works normally but not here, is that they're defined weakly in the matrix:
https://github.com/qmk/qmk_firmware/blob/master/quantum/matrix.c#L97-L113
keyboards/al1/al1.c
Outdated
@@ -15,14 +15,6 @@ | |||
*/ | |||
#include "al1.h" | |||
|
|||
void matrix_init_kb(void) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency, these should remain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
keyboards/al1/matrix.c
Outdated
@@ -28,6 +28,13 @@ inline uint8_t matrix_cols(void) { | |||
return MATRIX_COLS; | |||
} | |||
|
|||
void matrix_init_kb(void) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency, these should be set as "weak".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Well, I meant having the weak defines in the matrix.c file (as the main matrix.c file does that) However, this should be fine, as well. |
* use QMK_KEYBOARD_H * init_kb and scan_kb need to be in matrix.c to make use of the matrix.h include * Make the routines weak as suggested by Drashna
* use QMK_KEYBOARD_H * init_kb and scan_kb need to be in matrix.c to make use of the matrix.h include * Make the routines weak as suggested by Drashna
* use QMK_KEYBOARD_H * init_kb and scan_kb need to be in matrix.c to make use of the matrix.h include * Make the routines weak as suggested by Drashna
On the Configurator, you get the following
However you don't hit this when making any of the two default keymaps currently in AL1 directory.
The two matrix routines need matrix.h included. I figured it would be better to just define them in matrix. c which already has matrix.h included.