led.c : removed unused last_mode

This commit is contained in:
fenugrec 2022-11-25 08:37:53 -05:00
parent 361ab73ddb
commit edc684609b
2 changed files with 0 additions and 2 deletions

View File

@ -62,7 +62,6 @@ typedef struct {
typedef struct {
led_mode_t mode;
led_mode_t last_mode;
const led_seq_step_t *sequence;
uint32_t sequence_step;

View File

@ -77,7 +77,6 @@ static uint32_t led_set_sequence_step(led_data_t *leds, uint32_t step_num)
void led_run_sequence(led_data_t *leds, const led_seq_step_t *sequence, int32_t num_repeat)
{
leds->last_mode = leds->mode;
leds->mode = led_mode_sequence;
leds->sequence = sequence;
leds->seq_num_repeat = num_repeat;