Fix ADS-B remote mode incorrectly stopping other SDR services

When using a remote SBS feed, no local SDR is needed. The pre-flight
device conflict check was running regardless and stopping whichever
mode had the selected SDR device claimed — even though ADS-B remote
mode never touches a local SDR. Skip the conflict check when remoteConfig is set.
This commit is contained in:
James Smith
2026-03-20 14:04:04 +00:00
parent 2d65c4efbf
commit b20b9838d0

View File

@@ -2389,7 +2389,8 @@ sudo make install</code>
const adsbDevice = parseInt(adsbDeviceIdx) || 0;
// Pre-flight: check if another mode is using this device and auto-stop it
if (!useAgent) {
// Skip when using a remote SBS feed — no local SDR is needed
if (!useAgent && !remoteConfig) {
try {
const devResp = await fetch('/devices/status');
if (devResp.ok) {