Add correlation marker modes

This commit is contained in:
Mikei386
2026-07-22 07:48:05 +02:00
parent c067c73024
commit caec1edfcf
5 changed files with 93 additions and 3 deletions
+8
View File
@@ -271,6 +271,7 @@ function syncUI() {
['opt_rmsColWarn', CONFIG.RMS_COLOR_WARN],
['opt_corrResponse', String(Number(CONFIG.CORR_RESPONSE_S) >= 1.75 ? 2.5 : 1)],
['opt_corrNegativeMarkerMode', CONFIG.CORR_NEGATIVE_MARKER_MODE || 'memory'],
['opt_xyPoints', String(CONFIG.XY_POINTS)],
['opt_xyStyle', CONFIG.XY_STYLE],
['opt_xySilenceGate', CONFIG.XY_SILENCE_GATE_ENABLED, null, null, 'checkbox'],
@@ -929,6 +930,13 @@ function wireHandlers(env) {
try { env?.notifyRtaConfig?.(); } catch (_) {}
return String(CONFIG.CORR_RESPONSE_S);
});
h('opt_corrNegativeMarkerMode', v => {
const mode = String(v || '').toLowerCase();
CONFIG.CORR_NEGATIVE_MARKER_MODE = ['memory', 'hold', 'off'].includes(mode)
? mode
: 'memory';
return CONFIG.CORR_NEGATIVE_MARKER_MODE;
});
const corrResetPeak = E('opt_corrResetPeak');
if (corrResetPeak) corrResetPeak.onclick = () => {
CONFIG.CORR_RESET_TOKEN = Math.max(0, Math.floor(Number(CONFIG.CORR_RESET_TOKEN) || 0)) + 1;