|
@@ -87,9 +87,10 @@ static void pattern_trig_timer_function(struct timer_list *t)
|
|
|
data->curr->brightness);
|
|
|
mod_timer(&data->timer,
|
|
|
jiffies + msecs_to_jiffies(data->curr->delta_t));
|
|
|
-
|
|
|
- /* Skip the tuple with zero duration */
|
|
|
- pattern_trig_update_patterns(data);
|
|
|
+ if (!data->next->delta_t) {
|
|
|
+ /* Skip the tuple with zero duration */
|
|
|
+ pattern_trig_update_patterns(data);
|
|
|
+ }
|
|
|
/* Select next tuple */
|
|
|
pattern_trig_update_patterns(data);
|
|
|
} else {
|