From d8c5491200eb6ef768b019779e69b414443f0ef4 Mon Sep 17 00:00:00 2001 From: Smittix Date: Sat, 7 Feb 2026 12:31:48 +0000 Subject: [PATCH] Fix APRS start crash from calling nonexistent reserve_sdr_device The APRS route called app_module.reserve_sdr_device() which does not exist, causing an AttributeError that Flask returned as an HTML error page. The frontend then failed to parse it as JSON, showing "Unexpected token '<'" to the user. Fixed to use claim_sdr_device() which is the correct function used by all other modes. Co-Authored-By: Claude Opus 4.6 --- routes/aprs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/aprs.py b/routes/aprs.py index cf7fe61..901d47a 100644 --- a/routes/aprs.py +++ b/routes/aprs.py @@ -1487,7 +1487,7 @@ def start_aprs() -> Response: return jsonify({'status': 'error', 'message': str(e)}), 400 # Reserve SDR device to prevent conflicts with other modes - error = app_module.reserve_sdr_device(device, 'APRS') + error = app_module.claim_sdr_device(device, 'aprs') if error: return jsonify({ 'status': 'error',