From 01a85b780c3cea3ca2f585e547f376a82859712f Mon Sep 17 00:00:00 2001 From: bspsbee <38793669+bspsbee@users.noreply.github.com> Date: Sat, 28 Apr 2018 04:52:15 -1000 Subject: Add RGB keymap to UT47 (#2826) * Create readme.md * RGB keymap * Update matrix.c Remove serial when not used. --- keyboards/ut47/matrix.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'keyboards/ut47/matrix.c') 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 . #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) -- cgit v1.2.3-70-g09d2