1 Commits

Author SHA1 Message Date
StevenBuzzi
f75dfc706a H/P 연결할 때마다 Lifetime 기준값이 1씩 증가하는 버그 수정 2026-03-18 10:48:23 +09:00

View File

@@ -1117,6 +1117,9 @@ 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}")
@@ -1198,7 +1201,6 @@ 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)