Enable tap dance and other features for Whitefox
authorandy <andy.m.holder@gmail.com>
Tue, 5 Dec 2017 22:21:43 +0000 (22:21 +0000)
committerJack Humbert <jack.humb@gmail.com>
Fri, 8 Dec 2017 21:06:24 +0000 (16:06 -0500)
The custom matrix code was missing calls to matrix_*_quantum, disabling quantum features.

keyboards/whitefox/matrix.c
keyboards/whitefox/whitefox.c

index 9202ab0..ff334c0 100644 (file)
@@ -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;
 }
 
index d35bf83..2555dc2 100644 (file)
@@ -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();
+};
+