aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-03-23 13:46:02 -0400
committerJack Humbert <jack.humb@gmail.com>2016-03-23 13:46:02 -0400
commitba058f8b81132bf64b1aa263779629b8a6c18c23 (patch)
tree591a465b57d1e0e75de501b3801aed8b61734d6f
parent95b00321420533a1ea34a046f4cb1acaac16bf46 (diff)
parenta5a40a0703b209df91d5115126073e41b5676ec7 (diff)
downloadqmk_firmware-ba058f8b81132bf64b1aa263779629b8a6c18c23.tar.gz
qmk_firmware-ba058f8b81132bf64b1aa263779629b8a6c18c23.zip
Merge pull request #210 from n0bs/master
Edited Bantam44 to work with jackhumbert/qmk_firmware pull #190
-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