[fix](trx-frontend-http): restore synced frequency and rds badge

Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-02-28 11:48:20 +01:00
parent 4b5dd36778
commit f509500877
2 changed files with 9 additions and 6 deletions
@@ -949,7 +949,7 @@ function resetRdsDisplay() {
updateRdsPsOverlay(null);
}
function applyLocalTunedFrequency(hz) {
function applyLocalTunedFrequency(hz, forceDisplay = false) {
if (!Number.isFinite(hz)) return;
const freqChanged = lastFreqHz !== hz;
if (freqChanged) {
@@ -957,7 +957,10 @@ function applyLocalTunedFrequency(hz) {
}
lastFreqHz = hz;
refreshWavelengthDisplay(lastFreqHz);
if (!freqDirty) {
if (forceDisplay) {
freqDirty = false;
}
if (forceDisplay || !freqDirty) {
refreshFreqDisplay();
}
window.ft8BaseHz = lastFreqHz;
@@ -1233,7 +1236,7 @@ function render(update) {
}
}
if (update.status && update.status.freq && typeof update.status.freq.hz === "number") {
applyLocalTunedFrequency(update.status.freq.hz);
applyLocalTunedFrequency(update.status.freq.hz, true);
}
if (update.status && update.status.mode) {
const mode = normalizeMode(update.status.mode);
@@ -446,15 +446,15 @@ small { color: var(--text-muted); }
width: 100%;
margin: calc(-1 * var(--header-waterfall-overlap)) 0 0.95rem;
position: relative;
z-index: 1;
z-index: 4;
}
#rds-ps-overlay {
display: none;
position: absolute;
top: 0.35rem;
top: calc(var(--header-waterfall-overlap) + 0.35rem);
left: 50%;
transform: translate(-50%, 0);
z-index: 2;
z-index: 5;
pointer-events: none;
font-family: 'DSEG14 Classic', monospace;
font-size: clamp(1rem, 2.2vw, 1.45rem);