aboutsummaryrefslogtreecommitdiffstats
path: root/keyboard/planck/matrix.c
diff options
context:
space:
mode:
authorKeith Miyake <keith.miyake@gmail.com>2015-09-14 15:10:12 -0400
committerKeith Miyake <keith.miyake@gmail.com>2015-09-14 15:10:12 -0400
commit6a4ee574bcc8b67a5b842411eec45d351b14d1ed (patch)
tree9d7ab79506dc98631c9d635df11ec7064f48b0da /keyboard/planck/matrix.c
parent5bb7ef0012378cd800bff74680b08c587e6338e4 (diff)
downloadfirmware-6a4ee574bcc8b67a5b842411eec45d351b14d1ed.tar.gz
firmware-6a4ee574bcc8b67a5b842411eec45d351b14d1ed.tar.bz2
firmware-6a4ee574bcc8b67a5b842411eec45d351b14d1ed.zip
use preprocessor conditional on backlight initialization
Diffstat (limited to 'keyboard/planck/matrix.c')
-rw-r--r--keyboard/planck/matrix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/keyboard/planck/matrix.c b/keyboard/planck/matrix.c
index 8a021719c..d335a8fbe 100644
--- a/keyboard/planck/matrix.c
+++ b/keyboard/planck/matrix.c
@@ -65,7 +65,9 @@ void matrix_init(void)
MCUCR |= (1<<JTD);
MCUCR |= (1<<JTD);
+ #if BACKLIGHT_ENABLE == 'yes'
backlight_init_ports();
+ #endif
// Turn status LED on
DDRE |= (1<<6);