aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboard/Bantam44/Bantam44.c24
-rw-r--r--keyboard/Bantam44/Bantam44.h4
2 files changed, 12 insertions, 16 deletions
diff --git a/keyboard/Bantam44/Bantam44.c b/keyboard/Bantam44/Bantam44.c
index cfd8730a0..ad91401ee 100644
--- a/keyboard/Bantam44/Bantam44.c
+++ b/keyboard/Bantam44/Bantam44.c
@@ -1,29 +1,25 @@
1#include "Bantam44.h" 1#include "Bantam44.h"
2 2
3__attribute__ ((weak)) 3__attribute__ ((weak))
4void * matrix_init_user(void) { 4void matrix_init_user(void) {
5 // leave these blank 5 // leave these blank
6}; 6}
7 7
8__attribute__ ((weak)) 8__attribute__ ((weak))
9void * matrix_scan_user(void) { 9void matrix_scan_user(void) {
10 // leave these blank 10 // leave these blank
11}; 11}
12 12
13void * matrix_init_kb(void) { 13void matrix_init_kb(void) {
14 // put your keyboard start-up code here 14 // put your keyboard start-up code here
15 // runs once when the firmware starts up 15 // runs once when the firmware starts up
16 16
17 if (matrix_init_user) { 17 matrix_init_user();
18 (*matrix_init_user)(); 18}
19 }
20};
21 19
22void * matrix_scan_kb(void) { 20void matrix_scan_kb(void) {
23 // put your looping keyboard code here 21 // put your looping keyboard code here
24 // runs every cycle (a lot) 22 // runs every cycle (a lot)
25 23
26 if (matrix_scan_user) { 24 matrix_scan_user();
27 (*matrix_scan_user)(); 25} \ No newline at end of file
28 }
29}; \ No newline at end of file
diff --git a/keyboard/Bantam44/Bantam44.h b/keyboard/Bantam44/Bantam44.h
index 0170b871d..fa5b9df9e 100644
--- a/keyboard/Bantam44/Bantam44.h
+++ b/keyboard/Bantam44/Bantam44.h
@@ -23,7 +23,7 @@
23 { K30, K31, K32, KC_NO, K33, KC_NO, K34, KC_NO, K35, K36, K37, K38 }, \ 23 { K30, K31, K32, KC_NO, K33, KC_NO, K34, KC_NO, K35, K36, K37, K38 }, \
24} 24}
25 25
26void * matrix_init_user(void); 26void matrix_init_user(void);
27void * matrix_scan_user(void); 27void matrix_scan_user(void);
28 28
29#endif 29#endif