1
0
Fork 0

Unconditionally call led_init_ports (#12116)

* Unconditionally call led_init_ports

* Another call to led_init_ports
This commit is contained in:
Joel Challis 2021-08-03 18:34:32 +01:00 committed by GitHub
parent 2bc7511b9e
commit 3f419dc872
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 20 additions and 215 deletions

View file

@ -23,14 +23,8 @@ void set_led_state(int ledId, bool state)
{
}
void led_init_ports()
{
}
void led_set_layer(int layer)
{
led_init_ports();
led_set_layer(0);
/*KNOPS_SIMPLELED_STATES*/

View file

@ -60,7 +60,7 @@ void set_led_state(int ledId, bool state)
}
}
void led_init_ports()
void led_init_ports_user()
{
// Switch #1
DDRD |= (1 << 6);
@ -95,7 +95,7 @@ void led_set_layer(int layer)
void matrix_init_user(void)
{
led_init_ports();
led_init_ports_user();
led_set_layer(0);