add TODO comment

pull/5020/head
mtei 6 years ago
parent 257a1ca002
commit 5c3fd3a914

@ -828,7 +828,8 @@ void rgblight_effect_breathing(uint8_t interval) {
float val;
uint8_t interval_time = get_interval_time(&RGBLED_BREATHING_INTERVALS[interval], 1, 100);
//TODO: Integrate timer processing.
if (timer_elapsed(last_timer) < interval_time) {
return;
}
@ -851,6 +852,7 @@ void rgblight_effect_rainbow_mood(uint8_t interval) {
uint8_t interval_time = get_interval_time(&RGBLED_RAINBOW_MOOD_INTERVALS[interval], 5, 100);
//TODO: Integrate timer processing.
if (timer_elapsed(last_timer) < interval_time) {
return;
}
@ -876,6 +878,7 @@ void rgblight_effect_rainbow_swirl(uint8_t interval) {
uint8_t interval_time = get_interval_time(&RGBLED_RAINBOW_SWIRL_INTERVALS[interval / 2], 1, 100);
//TODO: Integrate timer processing.
if (timer_elapsed(last_timer) < interval_time) {
return;
}
@ -914,6 +917,7 @@ void rgblight_effect_snake(uint8_t interval) {
uint8_t interval_time = get_interval_time(&RGBLED_SNAKE_INTERVALS[interval / 2], 1, 200);
//TODO: Integrate timer processing.
if (timer_elapsed(last_timer) < interval_time) {
return;
}
@ -954,6 +958,7 @@ void rgblight_effect_knight(uint8_t interval) {
uint8_t interval_time = get_interval_time(&RGBLED_KNIGHT_INTERVALS[interval], 5, 100);
//TODO: Integrate timer processing.
if (timer_elapsed(last_timer) < interval_time) {
return;
}
@ -1001,6 +1006,8 @@ void rgblight_effect_christmas(void) {
static uint16_t last_timer = 0;
uint16_t hue;
uint8_t i;
//TODO: Integrate timer processing.
if (timer_elapsed(last_timer) < RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL) {
return;
}
@ -1024,6 +1031,7 @@ void rgblight_effect_rgbtest(void) {
static uint8_t maxval = 0;
uint8_t g; uint8_t r; uint8_t b;
//TODO: Integrate timer processing.
if (timer_elapsed(last_timer) < pgm_read_word(&RGBLED_RGBTEST_INTERVALS[0])) {
return;
}
@ -1049,6 +1057,8 @@ void rgblight_effect_rgbtest(void) {
void rgblight_effect_alternating(void){
static uint16_t last_timer = 0;
static uint16_t pos = 0;
//TODO: Integrate timer processing.
if (timer_elapsed(last_timer) < 500) {
return;
}

@ -166,6 +166,7 @@ typedef union {
typedef struct _rgblight_status_t {
bool timer_enabled;
// TODO: add animation syncronizing
// (with integrate timer processing.)
} rgblight_status_t;
#ifdef RGBLIGHT_SPLIT

Loading…
Cancel
Save