summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandy <andy.m.holder@gmail.com>2017-12-05 22:21:43 +0000
committerJack Humbert <jack.humb@gmail.com>2017-12-08 16:06:24 -0500
commitf5422a70b62e2b8cc75a87434a9901069ab953d4 (patch)
tree85b977628e031b30cbb09d095372d7a8377dcfe6
parente3b3c1ef82c05533c7368c834da4aee3ed0a3261 (diff)
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.c2
-rw-r--r--keyboards/whitefox/whitefox.c17
2 files changed, 19 insertions, 0 deletions
diff --git a/keyboards/whitefox/matrix.c b/keyboards/whitefox/matrix.c
index 9202ab0231..ff334c03ae 100644
--- a/keyboards/whitefox/matrix.c
+++ b/keyboards/whitefox/matrix.c
@@ -49,6 +49,7 @@ void matrix_init(void)
memset(matrix, 0, MATRIX_ROWS);
memset(matrix_debouncing, 0, MATRIX_ROWS);
+ matrix_init_quantum();
}
uint8_t matrix_scan(void)
@@ -102,6 +103,7 @@ uint8_t matrix_scan(void)
}
debouncing = false;
}
+ matrix_scan_quantum();
return 1;
}
diff --git a/keyboards/whitefox/whitefox.c b/keyboards/whitefox/whitefox.c
index d35bf83388..2555dc2025 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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "whitefox.h"
+
+__attribute__ ((weak))
+void matrix_init_user(void) {
+}
+
+__attribute__ ((weak))
+void matrix_scan_user(void) {
+}
+
+void matrix_init_kb(void) {
+ matrix_init_user();
+};
+
+void matrix_scan_kb(void) {
+ matrix_scan_user();
+};
+