diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2016-03-23 13:46:02 -0400 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2016-03-23 13:46:02 -0400 |
| commit | ba058f8b81132bf64b1aa263779629b8a6c18c23 (patch) | |
| tree | 591a465b57d1e0e75de501b3801aed8b61734d6f | |
| parent | 95b00321420533a1ea34a046f4cb1acaac16bf46 (diff) | |
| parent | a5a40a0703b209df91d5115126073e41b5676ec7 (diff) | |
| download | qmk_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.c | 24 | ||||
| -rw-r--r-- | keyboard/Bantam44/Bantam44.h | 4 |
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)) |
| 4 | void * matrix_init_user(void) { | 4 | void matrix_init_user(void) { |
| 5 | // leave these blank | 5 | // leave these blank |
| 6 | }; | 6 | } |
| 7 | 7 | ||
| 8 | __attribute__ ((weak)) | 8 | __attribute__ ((weak)) |
| 9 | void * matrix_scan_user(void) { | 9 | void matrix_scan_user(void) { |
| 10 | // leave these blank | 10 | // leave these blank |
| 11 | }; | 11 | } |
| 12 | 12 | ||
| 13 | void * matrix_init_kb(void) { | 13 | void 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 | ||
| 22 | void * matrix_scan_kb(void) { | 20 | void 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 | ||
| 26 | void * matrix_init_user(void); | 26 | void matrix_init_user(void); |
| 27 | void * matrix_scan_user(void); | 27 | void matrix_scan_user(void); |
| 28 | 28 | ||
| 29 | #endif | 29 | #endif |
