fix: SSTV VIS detector stuck in DETECTED state on validation failure

The previous fix (bf8b308) introduced a regression: when VIS parity
check failed or the VIS code was unrecognized, the detector entered
DETECTED state permanently and never resumed scanning. Now it resets
to IDLE on validation failure and only enters DETECTED on success.

Also resets partial image progress counter between consecutive decodes
and adds SDR device claiming to general SSTV route to prevent conflicts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-02-18 21:12:12 +00:00
parent bf8b308a2d
commit 4d42afce6c
3 changed files with 44 additions and 10 deletions
+1
View File
@@ -475,6 +475,7 @@ class SSTVDecoder:
mode_spec = get_mode(vis_code)
if mode_spec:
current_mode_name = mode_name
last_partial_pct = -1
image_decoder = SSTVImageDecoder(
mode_spec,
sample_rate=SAMPLE_RATE,