[fix](trx-wefax): allow WEFAX decoder to run in DIG mode

DIG mode provides the same SSB audio as USB, so WEFAX reception works
there. Added DIG to both the decoder registry active_modes and the
server-side mode gate.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-04-03 19:13:51 +02:00
parent 462d7494fb
commit f0621078ce
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ pub const DECODER_REGISTRY: &[DecoderDescriptor] = &[
id: "wefax", id: "wefax",
label: "WEFAX", label: "WEFAX",
activation: DecoderActivation::Toggle, activation: DecoderActivation::Toggle,
active_modes: &["USB", "LSB", "AM"], active_modes: &["USB", "LSB", "AM", "DIG"],
background_decode: false, background_decode: false,
bookmark_selectable: true, bookmark_selectable: true,
}, },
+1 -1
View File
@@ -2705,7 +2705,7 @@ pub async fn run_wefax_decoder(
let mut last_reset_seq: u64 = 0; let mut last_reset_seq: u64 = 0;
let is_wefax_mode = |mode: &RigMode| { let is_wefax_mode = |mode: &RigMode| {
matches!(mode, RigMode::USB | RigMode::LSB | RigMode::AM) matches!(mode, RigMode::USB | RigMode::LSB | RigMode::AM | RigMode::DIG)
}; };
let mut active = state_rx.borrow().decoders.wefax_decode_enabled let mut active = state_rx.borrow().decoders.wefax_decode_enabled