Browse Source

have led default to off on start up

Jennifer 7 years ago
parent
commit
29d1abff07
1 changed files with 3 additions and 1 deletions
  1. 3 1
      keyboards/dz60/dz60.c

+ 3 - 1
keyboards/dz60/dz60.c

@@ -16,7 +16,9 @@ void matrix_scan_kb(void) {
 
 
 void led_init_ports(void) {
 void led_init_ports(void) {
   // Set caps lock LED pin as output
   // Set caps lock LED pin as output
-  DDRB |= (1<<2);
+  DDRB |= (1 << 2);
+  // Default to off
+  PORTB |= (1 << 2);
 }
 }
 
 
 void led_set_kb(uint8_t usb_led) {
 void led_set_kb(uint8_t usb_led) {