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 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-02-07 12:31:48 +00:00
parent b9c8b1c730
commit d8c5491200
+1 -1
View File
@@ -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',