From fff465f6f62a2f55e81d58023940e54b058b09d0 Mon Sep 17 00:00:00 2001 From: jjangddu Date: Mon, 27 Apr 2026 17:39:44 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20detachment=20=EB=B9=84=ED=99=9C=EC=84=B1?= =?UTF-8?q?=ED=99=94=20+=20incomplete=20retry=20=EC=A0=9C=EA=B1=B0=20(c3eb?= =?UTF-8?q?a58=20=EA=B8=B0=EB=B0=98=20=EC=95=88=EC=A0=95=ED=99=94)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- .../ui/views/monitoring/PiezoMonitoringView.kt | 11 ----------- .../ui/views/monitoring/PlacementGuideView.kt | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/app/src/main/java/com/example/medilightv2android/ui/views/monitoring/PiezoMonitoringView.kt b/app/src/main/java/com/example/medilightv2android/ui/views/monitoring/PiezoMonitoringView.kt index cf8873c..dad7a59 100644 --- a/app/src/main/java/com/example/medilightv2android/ui/views/monitoring/PiezoMonitoringView.kt +++ b/app/src/main/java/com/example/medilightv2android/ui/views/monitoring/PiezoMonitoringView.kt @@ -107,17 +107,6 @@ fun PiezoMonitoringView(appState: AppState) { bleManager.piezoCollector.onMultiChannelComplete = { channels -> handler.post { - // 6채널 미만 수신 → 자동 retry (패킷 드랍 대응) - val receivedCount = channels.count { it.buffer.isNotEmpty() } - if (receivedCount < 6 && measureRetryCount < maxMeasureRetries) { - measureRetryCount++ - Log.w("PiezoMonitor", "Incomplete: $receivedCount/6 channels — retry $measureRetryCount") - bleManager.debugLogger.warn("INCOMPLETE_SCAN $receivedCount/6 — retry $measureRetryCount") - bleManager.piezoCollector.reset() - bleManager.sendChannelsOnly() - return@post - } - lastMultiChannelResult.clear() lastMultiChannelResult.addAll(channels) diff --git a/app/src/main/java/com/example/medilightv2android/ui/views/monitoring/PlacementGuideView.kt b/app/src/main/java/com/example/medilightv2android/ui/views/monitoring/PlacementGuideView.kt index b148561..0f00cf8 100644 --- a/app/src/main/java/com/example/medilightv2android/ui/views/monitoring/PlacementGuideView.kt +++ b/app/src/main/java/com/example/medilightv2android/ui/views/monitoring/PlacementGuideView.kt @@ -341,7 +341,7 @@ fun PlacementGuideView(appState: AppState) { val buffers = channels.sortedBy { it.channel }.map { it.buffer } val detachResult = DetachmentDetection.detect(buffers) - if (detachResult.isDetached) { + if (false) { // detachment 비활성화 directionHint = "Sensor detached — check contact" directionIcon = "exclamationmark.triangle" placementScore = 0