Removed unnecessary animateFlickerCode() overload. It just set currentFrequency to DefaultFrequency, therefore overwriting a previously set frequency

This commit is contained in:
dankito 2020-08-30 16:45:37 +02:00
parent b28f6ae68f
commit 5a06305171
1 changed files with 0 additions and 6 deletions

View File

@ -28,14 +28,8 @@ open class FlickerCodeAnimator {
open fun animateFlickerCode(flickerCode: FlickerCode, showStep: (Step) -> Unit) {
animateFlickerCode(flickerCode, DefaultFrequency, showStep)
}
open fun animateFlickerCode(flickerCode: FlickerCode, frequency: Int, showStep: (Step) -> Unit) {
stop() // stop may still running previous animation
currentFrequency = frequency
animationJob = GlobalScope.launch(Dispatchers.Default) {
val steps = FlickerCodeStepsCalculator().calculateSteps(flickerCode.parsedDataSet)