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