Compare commits
2 Commits
5d98419ef2
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
| f420d19a6f | |||
|
|
6f2d24717d |
@@ -392,13 +392,10 @@ class PresetViewModel @Inject constructor(
|
|||||||
val newRepetitionIndex = repetitionList.value.indexOf(repetition).takeIf { it != -1 } ?: 0
|
val newRepetitionIndex = repetitionList.value.indexOf(repetition).takeIf { it != -1 } ?: 0
|
||||||
val newRepetition = if (isUp == UpDownState.Up) {
|
val newRepetition = if (isUp == UpDownState.Up) {
|
||||||
// Original logic: repetitionIndex < PulseDurations.size -1 (Likely a typo, should be Repetitions.size)
|
// Original logic: repetitionIndex < PulseDurations.size -1 (Likely a typo, should be Repetitions.size)
|
||||||
if(newRepetitionIndex < repetitionList.value.size - 1) repetitionList.value[newRepetitionIndex + 1]
|
if (newRepetitionIndex < repetitionList.value.size - 1) repetitionList.value[newRepetitionIndex + 1] else repetition
|
||||||
else repetition
|
} else {
|
||||||
}
|
|
||||||
else {
|
|
||||||
// Original logic: repetitionIndex > 1
|
// Original logic: repetitionIndex > 1
|
||||||
if (newRepetitionIndex > 0) repetitionList.value[newRepetitionIndex - 1]
|
if (newRepetitionIndex > 0) repetitionList.value[newRepetitionIndex - 1] else repetition
|
||||||
else repetition
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val updatedPreset = currentList[index].copy(repetition = newRepetition)
|
val updatedPreset = currentList[index].copy(repetition = newRepetition)
|
||||||
|
|||||||
@@ -1117,9 +1117,6 @@ class MainViewModel @Inject constructor(
|
|||||||
increaseLampCount()
|
increaseLampCount()
|
||||||
saveLampCountToPreference()
|
saveLampCountToPreference()
|
||||||
|
|
||||||
Timber.d("Laser shot: lampCount=${_lampCount.value}, laserCount=${_laserCount.value} " +
|
|
||||||
"handPieceType=${handPiece.value.type}, hpCount=${hpCount.value}")
|
|
||||||
|
|
||||||
val repetitionIndex = repetitionAngle.value.degreeToStep(totalSteps = repetitionList.value.size)
|
val repetitionIndex = repetitionAngle.value.degreeToStep(totalSteps = repetitionList.value.size)
|
||||||
val repetition = repetitionList.value[repetitionIndex]
|
val repetition = repetitionList.value[repetitionIndex]
|
||||||
Timber.d("repetition: ${repetition}")
|
Timber.d("repetition: ${repetition}")
|
||||||
@@ -1201,6 +1198,7 @@ class MainViewModel @Inject constructor(
|
|||||||
}
|
}
|
||||||
Timber.d("HAND_PIECE lifetime: type=${h.type}, value=${connectedHandPieceLifeTime}, hpCount=${hpCount.value}")
|
Timber.d("HAND_PIECE lifetime: type=${h.type}, value=${connectedHandPieceLifeTime}, hpCount=${hpCount.value}")
|
||||||
|
|
||||||
|
|
||||||
// hand piece가 변경 시점 에서, pref 테이블 값을 -> energyTable 로 로딩
|
// hand piece가 변경 시점 에서, pref 테이블 값을 -> energyTable 로 로딩
|
||||||
loadFluenceTable(handPiece.value.type)
|
loadFluenceTable(handPiece.value.type)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user