From 1f7a3fe664f264602ec771fd2351f5426ffce1f5 Mon Sep 17 00:00:00 2001 From: Smittix Date: Tue, 6 Jan 2026 22:24:06 +0000 Subject: [PATCH] Fix SDRType.LIMESDR -> SDRType.LIME_SDR typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The enum is LIME_SDR (with underscore) but the code used LIMESDR, causing an AttributeError on /adsb/tools endpoint. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- routes/adsb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/adsb.py b/routes/adsb.py index 334e061..2ee4511 100644 --- a/routes/adsb.py +++ b/routes/adsb.py @@ -222,8 +222,8 @@ def check_adsb_tools(): # Check what SDR hardware is detected devices = SDRFactory.detect_devices() has_rtlsdr = any(d.sdr_type == SDRType.RTL_SDR for d in devices) - has_soapy_sdr = any(d.sdr_type in (SDRType.HACKRF, SDRType.LIMESDR, SDRType.AIRSPY) for d in devices) - soapy_types = [d.sdr_type.value for d in devices if d.sdr_type in (SDRType.HACKRF, SDRType.LIMESDR, SDRType.AIRSPY)] + has_soapy_sdr = any(d.sdr_type in (SDRType.HACKRF, SDRType.LIME_SDR, SDRType.AIRSPY) for d in devices) + soapy_types = [d.sdr_type.value for d in devices if d.sdr_type in (SDRType.HACKRF, SDRType.LIME_SDR, SDRType.AIRSPY)] # Determine if readsb is needed but missing needs_readsb = has_soapy_sdr and not has_readsb