Skip to content

Commit

Permalink
Al1 Configurator compile fix redux (qmk#3357)
Browse files Browse the repository at this point in the history
* move matrix routines to matrix.c

* add init user and scan user routines
  • Loading branch information
mechmerlin authored and drashna committed Jul 9, 2018
1 parent 5b7ac47 commit 0fcaa3b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
10 changes: 0 additions & 10 deletions keyboards/al1/al1.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@
*/
#include "al1.h"

__attribute__ ((weak))
void matrix_init_kb(void) {
matrix_init_user();
}

__attribute__ ((weak))
void matrix_scan_kb(void) {
matrix_scan_user();
}

bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
return process_record_user(keycode, record);
}
Expand Down
18 changes: 18 additions & 0 deletions keyboards/al1/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,24 @@ inline uint8_t matrix_cols(void) {
return MATRIX_COLS;
}

__attribute__ ((weak))
void matrix_init_kb(void) {
matrix_init_user();
}

__attribute__ ((weak))
void matrix_scan_kb(void) {
matrix_scan_user();
}

__attribute__ ((weak))
void matrix_init_user(void) {
}

__attribute__ ((weak))
void matrix_scan_user(void) {
}

void matrix_init(void) {
// initialize row and col
unselect_cols();
Expand Down

0 comments on commit 0fcaa3b

Please sign in to comment.