remove old mode number from comment

pull/3582/head
mtei 6 years ago
parent f024af17b5
commit 94e326ecc1

@ -579,53 +579,53 @@ void rgblight_show_solid_color(uint8_t r, uint8_t g, uint8_t b) {
void rgblight_task(void) { void rgblight_task(void) {
if (rgblight_timer_enabled) { if (rgblight_timer_enabled) {
// mode = 1, static light, do nothing here // static light mode, do nothing here
if ( 1 == 0 ) { //dummy if ( 1 == 0 ) { //dummy
} }
#ifdef RGBLIGHT_EFFECT_BREATHING #ifdef RGBLIGHT_EFFECT_BREATHING
else if (rgblight_config.mode >= RGBLIGHT_MODE_BREATHING && else if (rgblight_config.mode >= RGBLIGHT_MODE_BREATHING &&
rgblight_config.mode <= RGBLIGHT_MODE_BREATHING_end) { rgblight_config.mode <= RGBLIGHT_MODE_BREATHING_end) {
// mode = 2 to 5, breathing mode // breathing mode
rgblight_effect_breathing(rgblight_config.mode - RGBLIGHT_MODE_BREATHING ); rgblight_effect_breathing(rgblight_config.mode - RGBLIGHT_MODE_BREATHING );
} }
#endif #endif
#ifdef RGBLIGHT_EFFECT_RAINBOW_MOOD #ifdef RGBLIGHT_EFFECT_RAINBOW_MOOD
else if (rgblight_config.mode >= RGBLIGHT_MODE_RAINBOW_MOOD && else if (rgblight_config.mode >= RGBLIGHT_MODE_RAINBOW_MOOD &&
rgblight_config.mode <= RGBLIGHT_MODE_RAINBOW_MOOD_end) { rgblight_config.mode <= RGBLIGHT_MODE_RAINBOW_MOOD_end) {
// mode = 6 to 8, rainbow mood mod // rainbow mood mode
rgblight_effect_rainbow_mood(rgblight_config.mode - RGBLIGHT_MODE_RAINBOW_MOOD); rgblight_effect_rainbow_mood(rgblight_config.mode - RGBLIGHT_MODE_RAINBOW_MOOD);
} }
#endif #endif
#ifdef RGBLIGHT_EFFECT_RAINBOW_SWIRL #ifdef RGBLIGHT_EFFECT_RAINBOW_SWIRL
else if (rgblight_config.mode >= RGBLIGHT_MODE_RAINBOW_SWIRL && else if (rgblight_config.mode >= RGBLIGHT_MODE_RAINBOW_SWIRL &&
rgblight_config.mode <= RGBLIGHT_MODE_RAINBOW_SWIRL_end) { rgblight_config.mode <= RGBLIGHT_MODE_RAINBOW_SWIRL_end) {
// mode = 9 to 14, rainbow swirl mode // rainbow swirl mode
rgblight_effect_rainbow_swirl(rgblight_config.mode - RGBLIGHT_MODE_RAINBOW_SWIRL); rgblight_effect_rainbow_swirl(rgblight_config.mode - RGBLIGHT_MODE_RAINBOW_SWIRL);
} }
#endif #endif
#ifdef RGBLIGHT_EFFECT_SNAKE #ifdef RGBLIGHT_EFFECT_SNAKE
else if (rgblight_config.mode >= RGBLIGHT_MODE_SNAKE && else if (rgblight_config.mode >= RGBLIGHT_MODE_SNAKE &&
rgblight_config.mode <= RGBLIGHT_MODE_SNAKE_end) { rgblight_config.mode <= RGBLIGHT_MODE_SNAKE_end) {
// mode = 15 to 20, snake mode // snake mode
rgblight_effect_snake(rgblight_config.mode - RGBLIGHT_MODE_SNAKE); rgblight_effect_snake(rgblight_config.mode - RGBLIGHT_MODE_SNAKE);
} }
#endif #endif
#ifdef RGBLIGHT_EFFECT_KNIGHT #ifdef RGBLIGHT_EFFECT_KNIGHT
else if (rgblight_config.mode >= RGBLIGHT_MODE_KNIGHT && else if (rgblight_config.mode >= RGBLIGHT_MODE_KNIGHT &&
rgblight_config.mode <= RGBLIGHT_MODE_KNIGHT_end) { rgblight_config.mode <= RGBLIGHT_MODE_KNIGHT_end) {
// mode = 21 to 23, knight mode // knight mode
rgblight_effect_knight(rgblight_config.mode - RGBLIGHT_MODE_KNIGHT); rgblight_effect_knight(rgblight_config.mode - RGBLIGHT_MODE_KNIGHT);
} }
#endif #endif
#ifdef RGBLIGHT_EFFECT_CHRISTMAS #ifdef RGBLIGHT_EFFECT_CHRISTMAS
else if (rgblight_config.mode == RGBLIGHT_MODE_CHRISTMAS) { else if (rgblight_config.mode == RGBLIGHT_MODE_CHRISTMAS) {
// mode = 24, christmas mode // christmas mode
rgblight_effect_christmas(); rgblight_effect_christmas();
} }
#endif #endif
#ifdef RGBLIGHT_EFFECT_RGB_TEST #ifdef RGBLIGHT_EFFECT_RGB_TEST
else if (rgblight_config.mode == RGBLIGHT_MODE_RGB_TEST) { else if (rgblight_config.mode == RGBLIGHT_MODE_RGB_TEST) {
// mode = 35, RGB test // RGB test mode
rgblight_effect_rgbtest(); rgblight_effect_rgbtest();
} }
#endif #endif

Loading…
Cancel
Save