Unconditionally call led_init_ports (#12116)
* Unconditionally call led_init_ports * Another call to led_init_ports
This commit is contained in:
parent
2bc7511b9e
commit
3f419dc872
30 changed files with 20 additions and 215 deletions
|
@ -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*/
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue