From 9367878702eca48296ab85cee0e372f0eb6ef8ee Mon Sep 17 00:00:00 2001 From: QIU Date: Sat, 22 Aug 2026 15:53:52 +0000 Subject: [PATCH] fix(cw): show the correct original tone frequency in the waterfall label The Canvas marker was fixed to draw at estimatedPitch, but the overlay Text still computed its label from estimatedPitch + toneShiftHz, which showed the shifted position (800 Hz) instead of the original tone (e.g. 1500 Hz). --- .../main/java/com/rtbishop/look4sat/feature/cw/CwWaterfall.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/feature/cw/src/main/java/com/rtbishop/look4sat/feature/cw/CwWaterfall.kt b/feature/cw/src/main/java/com/rtbishop/look4sat/feature/cw/CwWaterfall.kt index 6656e5c4..9ddcaae6 100644 --- a/feature/cw/src/main/java/com/rtbishop/look4sat/feature/cw/CwWaterfall.kt +++ b/feature/cw/src/main/java/com/rtbishop/look4sat/feature/cw/CwWaterfall.kt @@ -244,9 +244,8 @@ internal fun CwWaterfallView( // Frequency labels overlaid on the waterfall. if (toneShiftHz != 0f && estimatedPitch != null && estimatedPitch > 0f) { - val origPitch = estimatedPitch + toneShiftHz Text( - text = "${origPitch.toInt()} Hz", + text = "${estimatedPitch.toInt()} Hz", fontSize = 9.sp, color = Color(0xFFFF9500), modifier = Modifier