Add correlation marker modes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user