Enable tap dance and other features for Whitefox

The custom matrix code was missing calls to matrix_*_quantum, disabling quantum features.
This commit is contained in:
andy 2017-12-05 22:21:43 +00:00 committed by Jack Humbert
parent e3b3c1ef82
commit f5422a70b6
2 changed files with 19 additions and 0 deletions

View File

@ -49,6 +49,7 @@ void matrix_init(void)
memset(matrix, 0, MATRIX_ROWS); memset(matrix, 0, MATRIX_ROWS);
memset(matrix_debouncing, 0, MATRIX_ROWS); memset(matrix_debouncing, 0, MATRIX_ROWS);
matrix_init_quantum();
} }
uint8_t matrix_scan(void) uint8_t matrix_scan(void)
@ -102,6 +103,7 @@ uint8_t matrix_scan(void)
} }
debouncing = false; debouncing = false;
} }
matrix_scan_quantum();
return 1; return 1;
} }

View 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/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "whitefox.h" #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();
};