- #ifdef TRACK_PREVIOUS_EFFECT
- static uint8_t toggle_enable_last = 255;
- #endif
- if (!led_matrix_config.enable) {
- led_matrix_all_off();
- led_matrix_indicators();
- #ifdef TRACK_PREVIOUS_EFFECT
- toggle_enable_last = led_matrix_config.enable;
- #endif
- return;
- }
-
- // delay 1 second before driving LEDs or doing anything else
- // FIXME: Can't we use wait_ms() here?
- static uint8_t startup_tick = 0;
- if (startup_tick < 20) {
- startup_tick++;