Fixed that decreaseFrequency() got lost during refactoring
This commit is contained in:
parent
3507bcd0ab
commit
d7c8d19da7
|
@ -146,6 +146,14 @@ open class ChipTanFlickerCodeView @JvmOverloads constructor(
|
|||
}
|
||||
|
||||
|
||||
open fun decreaseFrequency() {
|
||||
if (currentFrequency - FrequencyStepSize >= MinFrequency) {
|
||||
currentFrequency -= FrequencyStepSize
|
||||
|
||||
setFrequency(currentFrequency)
|
||||
}
|
||||
}
|
||||
|
||||
open fun increaseFrequency() {
|
||||
if (currentFrequency + FrequencyStepSize <= MaxFrequency) {
|
||||
currentFrequency += FrequencyStepSize
|
||||
|
|
Loading…
Reference in New Issue