Fix duplicate/stray code in midi_task function
This commit is contained in:
@@ -66,31 +66,6 @@ void midi_task(void* parameter) {
|
||||
vTaskDelay(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Handle flash animation
|
||||
if (flash_start > 0) {
|
||||
uint32_t elapsed = now - flash_start;
|
||||
if (elapsed >= 80) {
|
||||
mux.set_led_color(6, 20, 20, 20);
|
||||
mux.show();
|
||||
flash_start = 0;
|
||||
} else {
|
||||
float b = 1.0f - (float)elapsed / 80.0f;
|
||||
uint8_t v = (uint8_t)(255 * b * b);
|
||||
mux.set_led_color(6, v, v, v);
|
||||
mux.show();
|
||||
}
|
||||
}
|
||||
|
||||
// Update last_clock_time at the end of MIDI update
|
||||
// (checks happen during midi_transport.update())
|
||||
|
||||
vTaskDelay(1);
|
||||
}
|
||||
}
|
||||
|
||||
void sync_main.cpp():miditempfix() {
|
||||
|
||||
void handle_serial_command(const String& cmd) {
|
||||
if (cmd == "dump" || cmd == "d") {
|
||||
|
||||
Reference in New Issue
Block a user