remove MAX_MODES

This commit is contained in:
2026-01-06 12:20:27 +01:00
parent d33bda52d0
commit 3ada494d15
3 changed files with 5 additions and 12 deletions

View File

@ -14,10 +14,7 @@
#include "freertos/task.h"
#include "esp_log.h"
#define MAX_MODES 14 // TODO
static const char *TAG = "CONTROL";
static uint8_t current_animation_mode = 0;
// Forward declarations
@ -26,7 +23,7 @@ static void on_mode_change();
// Animation mode change callback
static void on_mode_change()
{
current_animation_mode = (current_animation_mode + 1) % MAX_MODES;
current_animation_mode = (current_animation_mode + 1) % ANIM_MODE_COUNT;
animation_set_mode((animation_mode_t)current_animation_mode);
}