summaryrefslogtreecommitdiff
path: root/keyboards/ut47/matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ut47/matrix.c')
-rw-r--r--keyboards/ut47/matrix.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/keyboards/ut47/matrix.c b/keyboards/ut47/matrix.c
index 18d420dbb..921bc9ed5 100644
--- a/keyboards/ut47/matrix.c
+++ b/keyboards/ut47/matrix.c
@@ -26,7 +26,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "debug.h"
#include "util.h"
#include "matrix.h"
-#include "protocol/serial.h"
+#ifdef LED_ENABLE
+ #include "protocol/serial.h"
+#endif
#ifndef DEBOUNCE
@@ -67,8 +69,10 @@ void matrix_init(void)
matrix[i] = 0;
matrix_debouncing[i] = 0;
}
-
+
+#ifdef LED_ENABLE
serial_init();
+#endif
}
uint8_t matrix_scan(void)