remove MAX_MODES
This commit is contained in:
@ -15,7 +15,6 @@
|
||||
static const char *TAG = "ANIMATION";
|
||||
|
||||
#define FRAMES_PER_SECOND 60
|
||||
#define NUM_LEDS_DEFAULT 44 // TODO: Default from proof-of-concept
|
||||
|
||||
static animation_mode_t current_mode = ANIM_BLACK;
|
||||
static uint8_t global_hue = 0;
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user