fix navigation animation
This commit is contained in:
@ -24,15 +24,6 @@ static void on_mode_change()
|
||||
animation_set_mode((animation_mode_t)current_animation_mode);
|
||||
}
|
||||
|
||||
void control_set_animation_mode(uint8_t mode)
|
||||
{
|
||||
if (mode >= ANIM_MODE_COUNT)
|
||||
{
|
||||
mode = 0;
|
||||
}
|
||||
on_mode_change(mode);
|
||||
}
|
||||
|
||||
uint8_t control_get_animation_mode(void)
|
||||
{
|
||||
return current_animation_mode;
|
||||
@ -58,7 +49,7 @@ esp_err_t control_init(void)
|
||||
|
||||
// Initialize LED strips
|
||||
ret = led_init(current_config.led_pin_strip_a, current_config.led_pin_strip_b,
|
||||
current_config.led_count_strip_a, current_config.led_count_strip_a);
|
||||
current_config.led_count_strip_a, current_config.led_count_strip_b);
|
||||
if (ret != ESP_OK)
|
||||
{
|
||||
ESP_LOGE(TAG, "LED init failed: %s", esp_err_to_name(ret));
|
||||
|
||||
Reference in New Issue
Block a user