From ee3b9d2ef08b3a176257b1082a0f367b9f29fc67 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Thu, 21 Jun 2018 20:29:40 -0700 Subject: Disable JTAG in keyboard init So that all boards, present and future will have JTAG disabled, even if using a custom matrix --- quantum/matrix.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'quantum') diff --git a/quantum/matrix.c b/quantum/matrix.c index 5337e2626..3600d4e7b 100644 --- a/quantum/matrix.c +++ b/quantum/matrix.c @@ -148,12 +148,6 @@ uint8_t matrix_cols(void) { void matrix_init(void) { - // To use PORTF disable JTAG with writing JTD bit twice within four cycles. - #if (defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB1287__) || defined(__AVR_ATmega32U4__)) - MCUCR |= _BV(JTD); - MCUCR |= _BV(JTD); - #endif - // initialize row and col #if (DIODE_DIRECTION == COL2ROW) unselect_rows(); -- cgit v1.2.3-24-g4f1b