mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
Add agent ACARS f00b4r0 support and UI state sync
- Agent: Add _detect_acarsdec_fork() for f00b4r0/DragonOS support - Agent: Use --output json:file, --rtlsdr, -m 256 for f00b4r0 fork - UI: Add setAcarsRunning() to sync button state with agent - UI: Add 'acars' to syncModeUI uiSetters map
This commit is contained in:
@@ -3763,6 +3763,30 @@ sudo make install</code>
|
||||
});
|
||||
}
|
||||
|
||||
// Sync ACARS UI state (called by syncModeUI in agents.js)
|
||||
function setAcarsRunning(running, agentId = null) {
|
||||
isAcarsRunning = running;
|
||||
const btn = document.getElementById('acarsToggleBtn');
|
||||
const indicator = document.getElementById('acarsPanelIndicator');
|
||||
|
||||
if (running) {
|
||||
acarsCurrentAgent = agentId;
|
||||
btn.textContent = '■ STOP ACARS';
|
||||
btn.classList.add('active');
|
||||
if (indicator) indicator.classList.add('active');
|
||||
// Start stream if not already running
|
||||
if (!acarsEventSource && !acarsPollTimer) {
|
||||
startAcarsStream(agentId !== null);
|
||||
}
|
||||
} else {
|
||||
btn.textContent = '▶ START ACARS';
|
||||
btn.classList.remove('active');
|
||||
if (indicator) indicator.classList.remove('active');
|
||||
}
|
||||
}
|
||||
// Expose to global scope for syncModeUI
|
||||
window.setAcarsRunning = setAcarsRunning;
|
||||
|
||||
function startAcarsStream(isAgentMode = false) {
|
||||
if (acarsEventSource) acarsEventSource.close();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user