fix: 배터리 폴링(5초 msn) 제거 — 측정 간섭 방지

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-27 18:24:27 +09:00
parent 0b06acea2b
commit 953e6b56aa
@@ -378,18 +378,7 @@ class BleManager private constructor(private val context: Context) {
} }
fun startBatteryPolling() { 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() { fun stopBatteryPolling() {