fix: 배터리 폴링(5초 msn) 제거 — 측정 간섭 방지
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -378,18 +378,7 @@ class BleManager private constructor(private val context: Context) {
|
||||
}
|
||||
|
||||
fun startBatteryPolling() {
|
||||
batteryTimer?.let { handler.removeCallbacks(it) }
|
||||
sendBatteryQuery()
|
||||
bluetoothGatt?.readRemoteRssi()
|
||||
val poll = object : Runnable {
|
||||
override fun run() {
|
||||
sendBatteryQuery()
|
||||
bluetoothGatt?.readRemoteRssi()
|
||||
handler.postDelayed(this, 5000)
|
||||
}
|
||||
}
|
||||
batteryTimer = poll
|
||||
handler.postDelayed(poll, 5000)
|
||||
// 배터리 폴링 비활성화 — 기기에서 끊지 않음
|
||||
}
|
||||
|
||||
fun stopBatteryPolling() {
|
||||
|
||||
Reference in New Issue
Block a user