diff options
| author | andy <andy.m.holder@gmail.com> | 2017-12-05 22:21:43 +0000 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2017-12-08 16:06:24 -0500 |
| commit | f5422a70b62e2b8cc75a87434a9901069ab953d4 (patch) | |
| tree | 85b977628e031b30cbb09d095372d7a8377dcfe6 | |
| parent | e3b3c1ef82c05533c7368c834da4aee3ed0a3261 (diff) | |
| download | qmk_firmware-f5422a70b62e2b8cc75a87434a9901069ab953d4.tar.gz qmk_firmware-f5422a70b62e2b8cc75a87434a9901069ab953d4.zip | |
Enable tap dance and other features for Whitefox
The custom matrix code was missing calls to matrix_*_quantum, disabling quantum features.
| -rw-r--r-- | keyboards/whitefox/matrix.c | 2 | ||||
| -rw-r--r-- | keyboards/whitefox/whitefox.c | 17 |
2 files changed, 19 insertions, 0 deletions
diff --git a/keyboards/whitefox/matrix.c b/keyboards/whitefox/matrix.c index 9202ab023..ff334c03a 100644 --- a/keyboards/whitefox/matrix.c +++ b/keyboards/whitefox/matrix.c | |||
| @@ -49,6 +49,7 @@ void matrix_init(void) | |||
| 49 | 49 | ||
| 50 | memset(matrix, 0, MATRIX_ROWS); | 50 | memset(matrix, 0, MATRIX_ROWS); |
| 51 | memset(matrix_debouncing, 0, MATRIX_ROWS); | 51 | memset(matrix_debouncing, 0, MATRIX_ROWS); |
| 52 | matrix_init_quantum(); | ||
| 52 | } | 53 | } |
| 53 | 54 | ||
| 54 | uint8_t matrix_scan(void) | 55 | uint8_t matrix_scan(void) |
| @@ -102,6 +103,7 @@ uint8_t matrix_scan(void) | |||
| 102 | } | 103 | } |
| 103 | debouncing = false; | 104 | debouncing = false; |
| 104 | } | 105 | } |
| 106 | matrix_scan_quantum(); | ||
| 105 | return 1; | 107 | return 1; |
| 106 | } | 108 | } |
| 107 | 109 | ||
diff --git a/keyboards/whitefox/whitefox.c b/keyboards/whitefox/whitefox.c index d35bf8338..2555dc202 100644 --- a/keyboards/whitefox/whitefox.c +++ b/keyboards/whitefox/whitefox.c | |||
| @@ -15,3 +15,20 @@ You should have received a copy of the GNU General Public License | |||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | #include "whitefox.h" | 17 | #include "whitefox.h" |
| 18 | |||
| 19 | __attribute__ ((weak)) | ||
| 20 | void matrix_init_user(void) { | ||
| 21 | } | ||
| 22 | |||
| 23 | __attribute__ ((weak)) | ||
| 24 | void matrix_scan_user(void) { | ||
| 25 | } | ||
| 26 | |||
| 27 | void matrix_init_kb(void) { | ||
| 28 | matrix_init_user(); | ||
| 29 | }; | ||
| 30 | |||
| 31 | void matrix_scan_kb(void) { | ||
| 32 | matrix_scan_user(); | ||
| 33 | }; | ||
| 34 | |||
